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 is atoi and atof in c?

619


What is define c?

575


A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?

1778


how to find binary of number?

3442


With the help of using classes, write a program to add two numbers.

620






Why c language is called c?

572


Explain how are 16- and 32-bit numbers stored?

786


What is malloc return c?

601


Write a code to remove duplicates in a string.

630


What is the difference between near, far and huge pointers?

629


What is a pointer variable in c language?

646


What are the two forms of #include directive?

645


What is NULL pointer?

678


Explain a pre-processor and its advantages.

634


What is ## preprocessor operator in c?

616