How to swap values between two variables without using a
third variable?
Answer Posted / gourab varma
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter value of a and b");
scanf("%d%d", &a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("the value of a=%d\n the value of b is=%d", a, b);
getch();
}
| Is This Answer Correct ? | 8 Yes | 1 No |
Post New Answer View All Answers
When we use Windows authentication mode
Plz sent me in .net 2.0 interview Question & answers?
Have you used callsymputx? what points need to be kept in mind when using it?
9.Difference between even and odd signals?explain with the diagram?
Write a program to create a process in UNIX
Where do we need Operator overloading?
Delta 5 weight scale not connect with oracle application what i can do?
sample and simple coding where we get?
What is %Type,%Rowtype?
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?
How to call a C++ function which is compiled with C++ compiler in C code?
details description on this mantis? who is founder of this mantis?
Define Form modules, Class modules and Standard modules
When you deliver your C++ headers and C++ library of a class (what all can you change in the class so that application using your class does not need to recompile the code)
what are resources in case of Threads