write a program to swap Two numbers without using temp variable.
Answer Posted / gouttam pradhan
#include<stdio.h>
main()
{
int a,b;
printf("enter two numbers");
scanf("%d%d",&a&b);
a=a+b;
b=a-b;
a=a-b;
printf("swaped valuess= ",);
printf("a=%d",a);
printf("b=%d",b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What is the full form of getch?
Explain the difference between null pointer and void pointer.
Explain how can you check to see whether a symbol is defined?
What is use of pointer?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
What is hashing in c language?
#include
Explain what is operator promotion?
What is the use of parallelize in spark?
Function calling procedures? and their differences? Why should one go for Call by Reference?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
What is memory leak in c?
Explain the concept and use of type void.
What is the purpose of realloc()?
Simplify the program segment if X = B then C ← true else C ← false