write a program to swap Two numbers without using temp variable.

Answer Posted / chandan

a=a+b;
b=a-b;
a=a-b;

Is This Answer Correct ?    1400 Yes 158 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 types of functions?

561


how to capitalise first letter of each word in a given string?

1422


Which is better malloc or calloc?

643


What is the use of ?: Operator?

655


Why c is known as a mother language?

628






What are the disadvantages of c language?

607


What is the purpose of ftell?

593


What is the use of clrscr?

583


Why c is a mother language?

544


Differentiate call by value and call by reference?

556


Explain what are multidimensional arrays?

590


What is pre-emptive data structure and explain it with example?

3197


Tell me what are bitwise shift operators?

646


What is a example of a variable?

537


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

753