how to swap two integers 1 and 32767 without using third
variable
Answer Posted / riya ganguly
int a=1,b=32767;
a=a+b;
b=a-b;
a=a-b;
printf("a=%d,b=%d",a,b);
| Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
What is a stream water?
What is d scanf?
How can I change their mode to binary?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
What is an expression?
Do you know the purpose of 'register' keyword?
I have a varargs function which accepts a float parameter?
What is spark map function?
What does %p mean c?
What is the use of void pointer and null pointer in c language?
What is function definition in c?
What is an example of structure?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
differentiate built-in functions and user – defined functions.
Differentiate between ordinary variable and pointer in c.