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 the difference between typedef and #define?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is function prototype in c with example?
How can I call a function with an argument list built up at run time?
shorting algorithmS
What is const keyword in c?
What are header files and explain what are its uses in c programming?
Explain what is a 'locale'?
What is pointers in c with example?
Is c procedural or functional?
What will the preprocessor do for a program?
What is c value paradox explain?
What is the best way of making my program efficient?
I have a varargs function which accepts a float parameter?
What are the two types of structure?