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 does *p++ do?
What is operator precedence?
What is boolean in c?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
What is default value of global variable in c?
how can I convert a string to a number?
What are linker error?
What is an auto variable in c?
Do you know the use of 'auto' keyword?
Simplify the program segment if X = B then C ← true else C ← false
What is the difference between abs() and fabs() functions?
What is array in C
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Who is the founder of c language?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software