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 2c dna?

1127


Explain what standard functions are available to manipulate strings?

1125


The __________ attribute is used to announce variables based on definitions of columns in a table?

1251


Explain how do you determine the length of a string value that was stored in a variable?

1196


Explain about the functions strcat() and strcmp()?

1092


Is there a way to jump out of a function or functions?

1163


What are linker error?

1146


What is I ++ in c programming?

1166


How can you draw circles in C?

1195


can we have joblib in a proc ?

2378


Why is c called c?

1071


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1168


what is recursion in C

1114


Are the outer parentheses in return statements really optional?

1157


What is strcmp in c?

1210