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 the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
What are header files? What are their uses?
What is the -> in c?
What is indirection? How many levels of pointers can you have?
write a program to print data of 5 five students with structures?
What is this pointer in c plus plus?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is volatile keyword in c?
Where define directive used?
what is recursion in C
How many keywords (reserve words) are in c?
What are control structures? What are the different types?
Explain the priority queues?
How to define structures? ·
Explain how do you use a pointer to a function?