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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What's the difference between alpha and beta testing?

655


can anybody send the project you have tested with the clear descriptions,and recent bugs u found in that

1697


I have 2+ year of work exp in manual testing and i have good knowledge in QTP.anybody have requirement in your company please please tell me

1468


How to find bug in photos and videos ??

1752


Hi Everybody could you please send me the ISTQB Material to my mail id karthik18487@gmail.com Thanking you in advance

1616






how will u create diff types of scenario for any website?

1801


When do we perform smoke testing?

686


Hi Friends, This is Chennamsubbaraidu.i Have 2+ Years Realtime Exp in Manual Testing.Am Looking to Shift From My Present Company.Please if u Have Any Openings in Your Company's, Please Let Me Know.Any Location Prefer.Thanks.

1428


Assume a login page, and you have written 10 cases(say for example). How will you justify that these 10 testcase suffient for the login and how do you say this is 100% satisfies the need.

1728


In which all places, testing is done?One is from the server by calling server name.Can u suggest others?

1482


1)can u tell me, what is the roles and responsibles for database tester in DB testing from requirement stage to UAT stage....2) what are the i/p documents he wants and who wil give the i/p docs. to DB tester.and tell me what exactly db test case means what?

2080


what is JAVA TESTING? What Testers will do in JAVA Testing. Can any one Give suitable Ans Pls. it's urgent

1587


How do you test for the coockies for a web application?

1621


Why did you choose the Software Testing Field?

1645


How will you determine when to stop testing?

630