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?

Answers were Sorted based on User's Feedback



How can u swap 2 variables in C without using 3rd variable?..

Answer / sj

main()
{
int a=20,b=30;
clrscr();
a=a+b;
b=a-b;
a=a-b;
printf("%d%d",a,b);
getch();
}

Is This Answer Correct ?    38 Yes 4 No

How can u swap 2 variables in C without using 3rd variable?..

Answer / deepa

main()
{
int a=20,b=30;
clrscr();
b=a+b;
a=b-a;
b=b-a;
printf("%d%d",a,b);
getch();
}

Is This Answer Correct ?    5 Yes 4 No

How can u swap 2 variables in C without using 3rd variable?..

Answer / 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

More Manual Testing Interview Questions

What types of code coverage do you know?

1 Answers   3i Infotech,


contents of test report

3 Answers   CTS,


Suppose a defect is fixed by developer and that defect got closed. But because of fixing that defect we are getting another defect. If 2nd defect is fixed the 1st defect is reproduced again. If that process is continuing what should the tester do to nail that defect?

2 Answers  


What are the principles of software testing?

0 Answers  


difference between smoke and sanity testing? help me with the clear answer...

5 Answers   Cap Gemini, Polaris,


How quickly we need to fix the bug? Or how soon the bug should get fixed?

0 Answers  


what is testdata

8 Answers   Impetus,


what is configuration management...please explain... thanx

2 Answers  


I have cleared written test and one Technical round in one company? now i have to face an Client Round through telephony? Any body have faced client round, how will it be , wil they ask technical or is it only formality round? im nervous, plz let me know wat all they may ask? i have this round on monday?

0 Answers   CTS, TCS,


i have completed my graduation in B.Sc. (phy, maths,computer), right now i am having 1.6 yrs exp on manual testing, for PG full time course is full time course or parttime is suitable form me , if any one is suitable then why it is suitable

1 Answers  


1.Enlist the types of testing performed for any window in sequence? 2.Use of edit_get_list function 3.Accuracy & Precision

0 Answers   Quantum,


Test cases for IE 6.0

1 Answers   Wipro,


Categories