Write a program to interchange two variables without using
the third variable?
Answer Posted / kumar
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
a=b-0;
b=a-0;
printf("a=%d b=%d",a,b);
getch();
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is the difference between single charater constant and string constant?
What is the difference between scanf and fscanf?
What is clrscr in c?
Function calling procedures? and their differences? Why should one go for Call by Reference?
Which node is more powerful and can handle local information processing or graphics processing?
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What language is windows 1.0 written?
How to establish connection with oracle database software from c language?
What is the use of structure padding in c?
How does #define work?
What is a floating point in c?
What does return 1 means in c?
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
What is getch?