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
Explain how are portions of a program disabled in demo versions?
Explain how can I manipulate strings of multibyte characters?
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
how is the examination pattern?
Are pointers really faster than arrays?
How can I write a function analogous to scanf?
what is the diffrenet bettwen HTTP and internet protocol
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
What is the difference between union and anonymous union?
What does calloc stand for?
Why flag is used in c?
What are pointers? What are stacks and queues?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
What is uint8 in c?
How can I list all of the predefined identifiers?