Answer Posted / amaresh chandra das
amaresh@Hare-Krishna:~$ cat swp.c
#include<stdio.h>
int
main(){
int a=5,b=6; // Compile using gcc -Wall
#ifdef DEBUG // to avoid compiler warnings
a ^=b^=a^=b;
#endif
printf("value of a is %d and b is %d\n",a,b);
return 0;
}
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What does the file stdio.h contain?
What is a double c?
What is the best way of making my program efficient?
Where define directive used?
Can the curly brackets { } be used to enclose a single line of code?
What is new line escape sequence?
What is calloc()?
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
Explain why C language is procedural?
what is the basis for selection of arrays or pointers as data structure in a program
What are dangling pointers in c?
What is the most efficient way to count the number of bits which are set in an integer?
What does the function toupper() do?
What should malloc(0) do?
How can I write a function analogous to scanf?