how to swap two integers 1 and 32767 without using third
variable

Answer Posted / sathwika

a=b-a;
b=b-a;
a=a+b;

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the different storage classes in c?

654


What are the features of c language?

613


What is substring in c?

628


How do I get an accurate error status return from system on ms-dos?

638


Where are some collections of useful code fragments and examples?

703






What is the use of bitwise operator?

678


Differentiate fundamental data types and derived data types in C.

604


Which of these functions is safer to use : fgets(), gets()? Why?

627


What is calloc() function?

614


What are extern variables in c?

539


Can include files be nested?

619


What does struct node * mean?

588


differentiate built-in functions and user – defined functions.

611


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

2208


What are the application of void data type in c?

685