write a program to swap Two numbers without using temp variable.
Answer Posted / riyaz
int a, b;
printf("a=");
scanf("%d",&a);
printf("b=");
scanf("%d",&b);
printf("a = %d\nb = %d\n",b,a);
return 0;
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is #define?
Explain modulus operator.
What are all different types of pointers in c?
Why flag is used in c?
what does static variable mean?
Why pointers are used in c?
Write a program for Overriding.
How can I list all of the predefined identifiers?
What is union in c?
if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0
What is volatile variable in c with example?
What was noalias and what ever happened to it?
What are the differences between Structures and Arrays?
What is new line escape sequence?
Do you have any idea about the use of "auto" keyword?