Write a program to interchange two variables without using
the third variable?
Answer Posted / deepa.n
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
a=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 ? | 8 Yes | 14 No |
Post New Answer View All Answers
Explain how can I convert a string to a number?
How are structure passing and returning implemented?
What is the difference between text files and binary files?
I need a sort of an approximate strcmp routine?
What happens if you free a pointer twice?
What is the difference between c &c++?
What’s a signal? Explain what do I use signals for?
What is the benefit of using const for declaring constants?
Dont ansi function prototypes render lint obsolete?
Is it better to use a macro or a function?
What is volatile c?
What is hungarian notation? Is it worthwhile?
write a program to find out prime number using sieve case?
Array is an lvalue or not?
What is array within structure?