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

#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }

3 Answers   SRG,


What is the code in while loop that returns the output of given code?

0 Answers  


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

0 Answers  


What is #include cctype?

0 Answers  


how to build a exercise findig min number of e heap with list imlemented?

0 Answers  






wat are the two methods for swapping two numbers without using temp variable??

2 Answers  


Is the following code legal? struct a { int x; struct a b; }

4 Answers  


Write a c program to enter a string of paragraph and replacing a particular word which is repeated in the paragraph by another word?

2 Answers   ME, Synfusion, Wipro,


What is the use of printf() and scanf() functions?

0 Answers  


What are file streams?

0 Answers  


What is wrong with this code such that it doesnt produce the input reversed? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }

2 Answers  


What is the difference between fread and fwrite function?

0 Answers  


Categories