How do we swap or interchange any 2 numbers without using
Temporary variable...Anybody can pls answer it.. Thanks in
Advance
Answer Posted / manju
main()
{
int a=16,b=19;
a=a+b;
b=a-b;
a=a-b;
printf("a and b are:%d\t%d",a,b);
}
Output:
a and b are:19 16
| Is This Answer Correct ? | 16 Yes | 3 No |
Post New Answer View All Answers
what does static variable mean?
What is #pragma statements?
Are there constructors in c?
What are the complete rules for header file searching?
How many types of functions are there in c?
Explain null pointer.
What are types of structure?
What are header files why are they important?
What are multidimensional arrays?
Where are some collections of useful code fragments and examples?
What are volatile variables in c?
What is exit() function?
What is the difference between formatted&unformatted i/o functions?
If errno contains a nonzero number, is there an error?
What’s a signal? Explain what do I use signals for?