Write a program to interchange two variables without using
the third variable?
Answer Posted / saravanan j (srm universi
you can apply it on any language?!
x = x xor y
y = x xor y
x = x xor y
* 1 year ago
Source(s):
Self Expierince
| Is This Answer Correct ? | 18 Yes | 12 No |
Post New Answer View All Answers
What is a nested loop?
How can this be legal c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What is function prototype in c language?
What is the size of structure pointer in c?
application attempts to perform an operation?
What is extern storage class in c?
What is data structure in c and its types?
What is putchar() function?
What is difference between scanf and gets?
What is the purpose of macro in C language?
What is mean by data types in c?
What is a scope resolution operator in c?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }