c program to subtract between two numbers without using '-'
sign and subtract function.



c program to subtract between two numbers without using '-' sign and subtract function...

Answer / pm

say, x-y
{
for (int i=y;i>=0;i--)
x--;
cout<<x;
}

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More C Interview Questions

suppose there are five integers write a program to find larger among them without using if- else

2 Answers  


Three major criteria of scheduling.

1 Answers  


Can we access RAM? How? Whats the range of access? Similarly What are other hardware we can access?

1 Answers  


how would a 4*3 array A[4][3] stored in Row Major Order?

0 Answers   HCL, Ignou,


What is the relationship between pointers and data structure?

0 Answers  






control 50 devices which has 2 states on and off.using bitwise operator.plz answer it its urgent

1 Answers  


How would you sort a linked list?

1 Answers  


main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?

9 Answers   Ramco,


What is #error and use of it?

0 Answers  


Why is c so important?

0 Answers  


I just typed in this program, and it is acting strangely. Can you see anything wrong with it?

0 Answers  


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

0 Answers  


Categories