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
What is the process to create increment and decrement stamen in c?
What are the storage classes in C?
How can I find out the size of a file, prior to reading it in?
Explain how do you search data in a data file using random access method?
What does. int *x[](); means ?
How will you find a duplicate number in a array without negating the nos ?
What is c basic?
Explain modulus operator.
How can I swap two values without using a temporary?
What is the difference between #include
What is the purpose of & in scanf?
How can I trap or ignore keyboard interrupts like control-c?
What is the benefit of using const for declaring constants?
Is there a way to jump out of a function or functions?
how to construct a simulator keeping the logical boolean gates in c