write a program to swap two numbers without using temporary
variable?
Answer Posted / sam
let a and b be variables
a^=b^=a^=b;
by performing this logic from right hand side we can swap
two variables
| Is This Answer Correct ? | 6 Yes | 5 No |
Post New Answer View All Answers
Is c call by value?
When can you use a pointer with a function?
Explain setjmp()?
What is getch () for?
How do shell structures work?
What is d scanf?
When can a far pointer be used?
What is the sizeof () operator?
Write a program of prime number using recursion.
What are the advantages of using new operator as compared to the function malloc ()?
What's the total generic pointer type?
What is the difference between far and near ?
What is the difference between pure virtual function and virtual function?
What is fflush() function?
How do you construct an increment statement or decrement statement in C?