HOW TO SWAP TWO NOS IN ONE STEP?

Answer Posted / shiva kumar

void main()
{
int a,b;
printf("Enter two numbers\n");
scanf("%d%d",&a,&b);
b=a+b-(a=b);
printf("%d %d ",a,b);
}

Is This Answer Correct ?    28 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by recursion in c?

630


plz let me know how to become a telecom protocol tester. thank you.

1745


What is structure padding in c?

630


What is c basic?

603


What is c token?

613






Describe the modifier in c?

607


What is atoi and atof in c?

620


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1138


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2204


What are linked lists in c?

651


How do you search data in a data file using random access method?

838


What is the c language function prototype?

649


How do you write a program which produces its own source code as output?

610


How do I read the arrow keys? What about function keys?

616


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

1932