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 can u swap 2 variables in C without using 3rd variable?

Answer Posted / rahul

#include<stdio.h>
#include<conio.h>
void main()
{
int a=20,b=30,c;
clrscr();
a=a+b;
b=b+a;
c=a+b;
c=b-a;
printf("swapping two variables using 3rd variable");
scanf("%d%d%d,a,b,c);
getch();
}

Is This Answer Correct ?    2 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which sanity testing is performed?

1667


What is an end-to-end testing?

1134


Explain some techniques for developing software components with respect to testability.

3601


What will be your approach if a particular script in Load Test fails?

2268


What is deferred status in defect life cycle?

1215


What is PBX Testing & What is Test coverage?

11169


What are the bussiness scenories?

3443


functional testing test cases for transfer funds ?

1659


What is the difference between functional testing and integration testing?

1321


Negative test cases for phone camera

729


What type bugs you will find in integration testing with example?

1990


Could someone please send me real check list for Database Security testing.Please my mail ID- patil.ramchandra@yahoo.co.in. Thanks.

2294


whats main working for tester. and developer, and prject manager.

2207


Plz give me manual testing real test case ?

1557


test cases for Insurance Processing System ?

4901