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
Explain how can a program be made to print the line number where an error occurs?
What is the method to save data in stack data structure type?
What is the difference between functions getch() and getche()?
What are valid operations on pointers?
What is the use of bit field?
How do you use a pointer to a function?
What is the deal on sprintf_s return value?
Is sizeof a keyword in c?
code for quick sort?
What is pointer to pointer in c with example?
Explain how do you declare an array that will hold more than 64kb of data?
Is a house a mass structure?
How can I recover the file name given an open stream?
Which is better pointer or array?
Explain the array representation of a binary tree in C.