write a program to swap Two numbers without using temp variable.
Answer Posted / rohan
four Types with single statements:
1.b=(a+b)-(a=b);
2.a^=b^=a^=b;
3.a=a+b;
b=a-b;
a=a-b;
4.a=a*b;
b=a/b;
a=a/b;
rohanraju143@gmail.com from NIT Waramgal
| Is This Answer Correct ? | 18 Yes | 7 No |
Post New Answer View All Answers
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is graph in c?
What are header files in c programming?
Write a program to find the biggest number of three numbers in c?
Explain how to reverse singly link list.
What are global variables and how do you declare them?
Explain goto?
What are the types of operators in c?
What are the primitive data types in c?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
Explain spaghetti programming?
the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above
What is pass by reference in c?
Can true be a variable name in c?
What is struct node in c?