Write a program to exchange two variaables without temp
Answer Posted / sujith
another quick way is,
void main()
{
int a = 10, b = 5;
a ^= b ^= a ^= b;
}
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
string reverse using recursion
Lists the benefits of c programming language?
What is scanf_s in c?
Calculate 1*2*3*____*n using recursive function??
What are the key features in c programming language?
Write a program to print fibonacci series without using recursion?
What is a scope resolution operator in c?
write a program to copy the string using switch case?
Are global variables static in c?
Write a program for finding factorial of a number.
Explain enumerated types in c language?
What was noalias and what ever happened to it?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Why does everyone say not to use scanf? What should I use instead?
Where define directive used?