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 is the relation between all tabs in quality center & explain the testing process in quality center with tabs?

0 Answers  


What is test data

3 Answers  


Hi,I am new to software testing. My question is, What can be the possible test cases one can write for a chair

6 Answers   Datamatics,


What is Equivalence partitioning,Boundary value analysis,Decision table testing,State transition testing,Use case testing. Plz explain with example and differences if any

3 Answers  


What is your approach when requirements change continuously?

0 Answers  


online demo for bug tracker tool(let me know the website)

0 Answers  


1.how you know all test cases are cover in one application? 2.what is difference between error message and warning message ? 3.what are the items comes under traceabily materix?

7 Answers   iSoft,


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

0 Answers   IBM,


Can any one suggest how to write the bug reports effectively by optimizing what we want to describe?

0 Answers  


How to write Negative test cases?

12 Answers   CarrizalSoft Technologies, Infosys, Microsoft, Ybrant Technologies,


what to test in usability testing.?

3 Answers  


when will you do the requirement analysis?

4 Answers  


Categories