wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / vijayakumar kanagasabai
main()
{
int a=4;b=6;
printf("Before swapping: a=%d, b=%d",a,b);
a=a+b;
b=a-b;
a=a-b;
printf("After swapping: a=%d, b=%d",a,b);
}
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
What is a c token and types of c tokens?
How do I get a null pointer in my programs?
how to count no of words,characters,lines in a paragraph.
What is structure pointer in c?
to find the closest pair
What are valid signatures for the Main function?
What is the scope of an external variable in c?
What is zero based addressing?
Explain threaded binary trees?
Write a code of a general series where the next element is the sum of last k terms.
Explain why C language is procedural?
What is volatile variable in c?
hi any body pls give me company name interview conduct "c" language only
C language questions for civil engineering
What is action and transformation in spark?