write a program to swap Two numbers without using temp variable.
Answer Posted / vigneswari
#include<iostream.h>
#include<conio.h>
void main()
{
int a,b,c,d;
cout<<"\n enter a:";
cin>>a;
cout<<"\n enter b:";
cin>>b;
c=a+b;
d=a-b;
c=a-b;
cout<<"\n answer a :"<<c;
cout<<"\n answer b:"<<d;
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What does %p mean c?
Can we declare a function inside a function in c?
What is linear search?
How can I manipulate individual bits?
What do you mean by recursion in c?
Explain about C function prototype?
Explain that why C is procedural?
What are inbuilt functions in c?
What is the heap?
How pointers are declared?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What is pragma in c?
What is calloc()?
Are pointers integer?
Differentiate Source Codes from Object Codes