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 to swap two integers 1 and 32767 without using third
variable

Answer Posted / riya ganguly

int a=1,b=32767;
a=a+b;
b=a-b;
a=a-b;
printf("a=%d,b=%d",a,b);

Is This Answer Correct ?    17 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a stream water?

1129


What is d scanf?

1029


How can I change their mode to binary?

1054


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

2080


What is an expression?

1003


Do you know the purpose of 'register' keyword?

975


I have a varargs function which accepts a float parameter?

999


What is spark map function?

1060


What does %p mean c?

1018


What is the use of void pointer and null pointer in c language?

1073


What is function definition in c?

1024


What is an example of structure?

984


please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

2134


differentiate built-in functions and user – defined functions.

1042


Differentiate between ordinary variable and pointer in c.

1103