how to swap two integers 1 and 32767 without using third
variable
Answer Posted / vidhubala-j
int a=1
int b=32767
a^=b^=a
printf("%d %d",a,b);
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
Do you know what are bitwise shift operators in c programming?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
In c language can we compile a program without main() function?
What is meant by gets in c?
How do you declare a variable that will hold string values?
What are the rules for the identifier?
What is define directive?
What is the use of static variable in c?
plz let me know how to become a telecom protocol tester. thank you.
Explain the use of #pragma exit?
What is the difference between malloc calloc and realloc in c?
What is scope rule in c?
The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none
Explain what is the difference between text files and binary files?
Write program to remove duplicate in an array?