HOW TO SWAP TWO NOS IN ONE STEP?

Answer Posted / n.ramesh

#include(stdio.h);
#include(stdlib.h);
void main()
{
int a=10,b=20;
swap(a,b);
a=b&b=a;
printf("%d%d",a,b);
}

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scope rule of function in c?

552


What are near, far and huge pointers?

648


Difference between Function to pointer and pointer to function

634


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1461


What is the difference between #include and #include 'file' ?

605






What are the different data types in C?

729


Can you mix old-style and new-style function syntax?

664


What is the purpose of main() function?

659


Write a program to check palindrome number in c programming?

601


What is spark map function?

581


How does placing some code lines between the comment symbol help in debugging the code?

548


What is the purpose of the statement: strcat (S2, S1)?

642


What is function pointer c?

586


What is pointer in c?

742


Differentiate between null and void pointers.

633