Write a program to interchange two variables without using
the third variable?
Answer Posted / raghavendra
#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=a/b;
printf("After chanching no is =\n");
printf("a=%d b=%d",a,b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 9 No |
Post New Answer View All Answers
Explain how can I prevent another program from modifying part of a file that I am modifying?
How is null defined in c?
write a c program to find the sum of five entered numbers using an array named number
Explain what are linked list?
Do you know what are bitwise shift operators in c programming?
what are the facialities provided by you after the selection of the student.
Can you please explain the difference between exit() and _exit() function?
What is the difference between text and binary i/o?
What is the right type to use for boolean values in c?
How arrays can be passed to a user defined function
What is a string?
What is cohesion and coupling in c?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
What is use of pointer?
In a header file whether functions are declared or defined?