Write a program to interchange two variables without using
the third variable?
Answer Posted / debasis nayak
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter the value of A and B");
scanf("%d %d",&a,&b);
b=(a+b-a=b);
printf("After interchange value are %d %d",a,b);
getch();
}
| Is This Answer Correct ? | 11 Yes | 13 No |
Post New Answer View All Answers
what are enumerations in C
What math functions are available for integers? For floating point?
What are the Advantages of using macro
What is the use of gets and puts?
What are the 4 types of unions?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
What is spaghetti programming?
What is the difference between the local variable and global variable in c?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
how to write a c program to print list of fruits in alpabetical order?
Where local variables are stored in c?
int main() { Int n=20,i; For(i=0;i<=n;i--) { Printf(“-“); Return 0;
What is data structure in c language?
Define Array of pointers.
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset