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
Are the variables argc and argv are local to main?
Explain a pre-processor and its advantages.
What does %d do in c?
What is getch () for?
Not all reserved words are written in lowercase. TRUE or FALSE?
Is a house a shell structure?
What is the 'named constructor idiom'?
How can I write functions that take a variable number of arguments?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
What is null pointer constant?
How can I list all of the predefined identifiers?
Is file a keyword in c?
Explain what is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
Explain 'bit masking'?
Explain the term printf() and scanf() used in c language?