Answer Posted / vijay r15
#include<stdio.h>
Void main()
{
int a=10,b=20;
a=a+b-(a=b);
// or use temp var
//or use a^=b^=a
//or use a=a+b;b=a-b;a=a-b;
printf("%d%d",a,b);
}
Any dbt mail to raj.vijay55@gmail.com
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is a lookup table in c?
What is the easiest sorting method to use?
What is c token?
What are enumerated types?
How do you define a string?
What does typeof return in c?
How do I use void main?
Explain how do you view the path?
Differentiate between a for loop and a while loop? What are it uses?
What is a structure member in c?
What is the use of sizeof?
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
How do you view the path?
Explain 'far' and 'near' pointers in c.
How can I insert or delete a line (or record) in the middle of a file?