How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance

Answer Posted / surendra jhajhra

int x,y;

x =x+y;
y =x-y;
x =x-y;

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which programming language is best for getting job 2020?

611


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

550


What is the difference between the local variable and global variable in c?

534


What is %d used for?

588


What is a void * in c?

602






What are reserved words?

658


What happens if a header file is included twice?

602


What are the different types of C instructions?

681


Explain data types & how many data types supported by c?

588


What are the data types present in c?

631


What is default value of global variable in c?

564


What are the types of pointers in c?

532


Why c is called free form language?

575


What is the difference between printf and scanf )?

597


What does printf does?

751