Write a program to interchange two variables without using
the third variable?
Answer Posted / deepa.n
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
c=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 ? | 15 Yes | 26 No |
Post New Answer View All Answers
Can you assign a different address to an array tag?
What is the heap?
What is meant by gets in c?
Lists the benefits of c programming language?
What are the different types of linkage exist in c?
How can I write functions that take a variable number of arguments?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Explain heap and queue.
What does do in c?
How can I call a function with an argument list built up at run time?
What is meant by type specifiers?
Without Computer networks, Computers will be half the use. Comment.
Explain how do you generate random numbers in c?
How many types of functions are there in c?
What is c language in simple words?