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 is the difference between union and structure in c?
Write a program to print “hello world” without using semicolon?
Explain about C function prototype?
What is the use of ?
Write a program that accept anumber in words
Write a Program to accept different goods with the number, price and date of purchase and display them
Is void a keyword in c?
What is scope rule in c?
What is the difference between #include and #include 'file' ?
Give the rules for variable declaration?
What is a protocol in c?
What are the types of type specifiers?
In which language linux is written?
explain what is an endless loop?
What is difference between main and void main?