write a program to swap Two numbers without using temp variable.
Answer Posted / harika
main()
{
int a=2,b=3;
a^=b^=a^=b;
printf("%d,%d",a,b);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
In a switch statement, explain what will happen if a break statement is omitted?
What is break statement?
Explain how can I convert a number to a string?
Why do we use stdio h and conio h?
What library is sizeof in c?
Does c have class?
can we implement multi-threads in c.
The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference
What is the use of a semicolon (;) at the end of every program statement?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is #include stdio h and #include conio h?
What is page thrashing?
What are 3 types of structures?
p*=(++q)++*--p when p=q=1 while(q<=6)
What is the difference between text and binary i/o?