Write a program to interchange two variables without using
the third variable?
Answer Posted / jisha. k.a
#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 ? | 34 Yes | 16 No |
Post New Answer View All Answers
Explain the concept and use of type void.
Describe the modifier in c?
Explain the difference between getch() and getche() in c?
Do you know what are bitwise shift operators in c programming?
Define recursion in c.
What is typedef?
Write a program of prime number using recursion.
How can I ensure that integer arithmetic doesnt overflow?
Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent
What's the difference between constant char *p and char * constant p?
What are structure members?
How can you find the exact size of a data type in c?
What are the advantages and disadvantages of c language?
What is c language used for?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd