Write a program to exchange two variaables without temp

Answer Posted / vijay

main()
{
int a, b;
a=a+b;
b=a-b;
a=a-b;
}

Is This Answer Correct ?    24 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do I determine whether a character is numeric, alphabetic, and so on?

648


What is getche() function?

603


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

680


What is a keyword?

740


What are the back slash character constants or escape sequence charactersavailable in c?

678






hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1406


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

1426


What is function prototype?

607


How can I swap two values without using a temporary?

610


What is %d used for?

580


What is the difference between a free-standing and a hosted environment?

636


What is data type long in c?

621


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜nā€™ element.

1576


Are there any problems with performing mathematical operations on different variable types?

568


What is a ternary operator in c?

646