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
What are the features of the c language?
Which are low level languages?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
Which node is more powerful and can handle local information processing or graphics processing?
What are dangling pointers in c?
Differentiate abs() function from fabs() function.
Tell me what is the purpose of 'register' keyword in c language?
What is c programing language?
Why is it important to memset a variable, immediately after allocating memory to it ?
Why pointers are used in c?
Explain what is meant by high-order and low-order bytes?
Difference between Function to pointer and pointer to function
What is the newline escape sequence?
What is a static function in c?
What is the scope of static variable in c?