How to write the code of the program to swap two numbers
with in one statement?
Answer Posted / manoj kumar shukla
main()
{
int a=4,b=3;
a=a+b-(b=a);
printf("%d",a);
printf("%d",b);
}
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is a rvalue?
What are the general description for loop statement and available loop types in c?
Why do we use header files in c?
Explain what is #line used for?
What is difference between Structure and Unions?
How can I dynamically allocate arrays?
Is null a keyword in c?
What are header files why are they important?
What do you mean by a local block?
What is sorting in c plus plus?
Do you know null pointer?
differentiate built-in functions and user – defined functions.
What are nested functions in c?
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
What is your stream meaning?