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
Is main is a keyword in c?
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.
What is the best organizational structure?
What was noalias and what ever happened to it?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is the best way of making my program efficient?
What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.
What is null in c?
What does stand for?
Tell me the use of bit field in c language?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
Can a program have two main functions?
What is the use of ?
Why main is used in c?
What is scanf () in c?