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

Is c++ based on c?

644


How can you find the exact size of a data type in c?

593


How arrays can be passed to a user defined function

570


#include #include struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.

5188


Tell me what is null pointer in c?

607






Explain enumerated types in c language?

598


Differentiate between calloc and malloc.

749


What is keyword with example?

628


What is openmp in c?

605


Give me the code of in-order recursive and non-recursive.

878


What is else if ladder?

603


Give basis knowledge of web designing ...

1567


Which header file is used for clrscr?

571


What is logical error?

599


What is string in c language?

617