How to write the code of the program to swap two numbers
with in one statement?
Answer Posted / rajitha
#include<stdio.h>
main()
{
int a=3,b=4;
b=a+b-(a=b);
printf("%d",a);
printf("%d",b);
}
| Is This Answer Correct ? | 19 Yes | 4 No |
Post New Answer View All Answers
How can I get random integers in a certain range?
What are the keywords in c?
What does c mean in basketball?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
How many levels of pointers have?
Can math operations be performed on a void pointer?
Is c programming hard?
What is use of #include in c?
How can I discover how many arguments a function was actually called with?
What are the characteristics of arrays in c?
Explain what are binary trees?
What is difference between structure and union in c?
What is calloc in c?
Tell me the use of bit field in c language?
What are directives in c?