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 a static variable in c?
How can I manipulate individual bits?
Are bit fields portable?
What is the heap?
What is the explanation for prototype function in c?
What do mean by network ?
What does int main () mean?
using only #include
Write a program to print factorial of given number without using recursion?
What is strcmp in c?
Is null a keyword in c?
Where in memory are my variables stored?
How can I read a binary data file properly?
What is a substring in c?
how is the examination pattern?