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 the format specifier for printing a pointer value?
What is the right type to use for boolean values in c?
What are reserved words with a programming language?
Simplify the program segment if X = B then C ← true else C ← false
In C programming, how do you insert quote characters (‘ and “) into the output screen?
what are bit fields in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
can anyone please tell about the nested interrupts?
Do you know the difference between exit() and _exit() function in c?
What is difference between structure and union in c programming?
What is the difference between NULL and NUL?
In a header file whether functions are declared or defined?
What is malloc return c?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
How is a null pointer different from a dangling pointer?