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 state transition?

0 Answers  


Contents in Tracebility matrix?

14 Answers   JVS, NIIT, TCS,


You need to plan a test project to qualify an application composed of many individual components. Referring to the scenario above, which phases do you expect to take longer than usual?

2 Answers  


Hi can any body clarify me plz What are responsibilities of a test engineer in the company,and how he communicates wiht t.l as well as test manager, In wich situation this type of i mean serious commnication takes place(give me one example).and how the interaction will takes place between tester and client can anybody plz clatify me

1 Answers  


Tell me please whether Unit Testing comes under "Black box testing" OR "White Box testing" ?

6 Answers  


Is there any group of software tester in India so as everybody can join them?

2 Answers  


How to write Test Cases? What r the items in the Test Case? How to say whether the Test Case covers all functionalities in Application?

5 Answers   Scandent,


What is the difference between bug,error,defect.

5 Answers  


What do you mean by testing matrices?

3 Answers   Keane India Ltd,


Big Bang Model isn't preferable for higher cost project? a. True b. False (Need the answer urgently) Thanks!

2 Answers  


iwant know IEEE formate ,how it is used and exactly where it is used? i have details it follows test plan, testcases...etc. i want real time explanation. pls any one give?

0 Answers  


what are the documents that will be created in testing cycle?

6 Answers   Siemens,


Categories