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 to find binary of number?
Can true be a variable name in c?
Does sprintf put null character?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What are different types of pointers?
What is the correct declaration of main?
how to write a c program to print list of fruits in alpabetical order?
What is the correct code to have following output in c using nested for loop?
What does *p++ do? What does it point to?
What are the advantages of using macro in c language?
What does volatile do?
Why doesnt this code work?
What is break in c?
Explain heap and queue.
What is the symbol indicated the c-preprocessor?