Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

how do we provide security for web services

2343


I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.

5387


What is the use of sas software? Is sas and sap are different?

1525


How to connect the .accdb database file of microsoft access to the Visual Basic 6.0 forms?

4287


what is technical system, business system, logical system in sap pi7.0

2592


what is the last ant version you worked?how to get it

1949


what are stubs related to foxpro?

2100


How to call dll API sub routine in VB Form.

2363


any drawback are there in mantis?

2158


Write a program to find whether a given number is prime or not.

1029


When will you use shell script/Perl ahead of C/C++?

1098


what is adodb??y it is used for connection of V.B and access??what is ado?dao?

2202


How will you prove that java swing is multithreaded?

2297


iam confused among testing ,.net and java. can anybody help me.

2012


smal talk is pure object oriented or not?

1960