write a program in C to swap two variables
Answer Posted / srinivas
#include <stdio.h>
int main(void)
{
int a = 2, b = 5;
a = a + b;
b = a - b;
a = a - b;
printf("%d\t%d\n", a, b);
return 0;
}
Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Differentiate between Macro and ordinary definition.
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Write a program to check prime number in c programming?
Explain how can you determine the size of an allocated portion of memory?
What is the use of a conditional inclusion statement in C?
What is file in c language?
What is modeling?
What does c mean in basketball?
How many keywords are there in c?
What is strcpy() function?
can we change the default calling convention in c if yes than how.........?
Which is best linux os?
Write a c program to demonstrate character and string constants?
Explain union.