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

how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1562


Why void main is used in c?

757


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

1839


Explain what is meant by high-order and low-order bytes?

811


What is #include cctype?

776






Why is it usually a bad idea to use gets()? Suggest a workaround.

1318


Do pointers need to be initialized?

768


Can a void pointer point to a function?

740


how to count no of words,characters,lines in a paragraph.

4119


What is difference between union and structure in c?

751


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1106


What is an lvalue?

820


What is a MAC Address?

797


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

961


What are near, far and huge pointers?

821