write a program to swap Two numbers without using temp variable.
Answer Posted / ijagz
#include<conio.h>
#include<stdio.h>
int main()
{
int a,b;
printf("Enter the first number\n");
scanf("%d",&a);
printf("Enter the second number\n");
scanf("%d",&b);
printf("your answer is %d %d",b,a);
getch();
return 0;
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to get string length of given string in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Is c++ based on c?
What are c preprocessors?
What are the functions to open and close the file in c language?
What does 4d mean in c?
What is const volatile variable in c?
What is the meaning of && in c?
Is c a great language, or what?
write a program to copy the string using switch case?
Explain the use of fflush() function?
What is the purpose of the statement: strcat (S2, S1)?
What is "Duff's Device"?
What is the advantage of using #define to declare a constant?