Write a program to interchange two variables without using
the third variable?
Answer Posted / ramesh mca gprec knl
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
c=a*b;
b=a/b;
a=b/a;
printf("After chanching no is =\n");
printf("a=%d b=%d",a,b);
getch();
}
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is union in c?
What is wrong with this declaration?
Explain how do you list a file’s date and time?
What is the difference between text and binary modes?
What is an endless loop?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Is c still used?
What is the difference between #include
Is malloc memset faster than calloc?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
How is a pointer variable declared?
What is the advantage of an array over individual variables?
What are pragmas and what are they good for?
What is methods in c?
What is the purpose of scanf() and printf() functions?