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 is a far pointer in c?
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
How many levels deep can include files be nested?
What does p mean in physics?
Write a code to generate divisors of an integer?
What is optimization in c?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Write a code of a general series where the next element is the sum of last k terms.
What is scope rule in c?
What is #include stdio h and #include conio h?
What is getch c?
Explain how can you tell whether two strings are the same?
How do c compilers work?
Why is a semicolon (;) put at the end of every program statement?