Write a program to interchange two variables without using
the third variable?
Answer Posted / ramesh mca gprec knl
#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 ? | 1 Yes | 4 No |
Post New Answer View All Answers
What is else if ladder?
What is the difference between far and near ?
how can use subset in c program and give more example
How to write a multi-statement macro?
What are the string functions? List some string functions available in c.
What is a void pointer in c?
What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Is c still used?
Can we change the value of #define in c?
What are the different properties of variable number of arguments?
What are near, far and huge pointers?
What is volatile variable in c?
What are the different data types in C?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What is the g value paradox?