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...

write a prgram of swapping with 2 valiables

Answer Posted / devi

i can swap da 2 variables in singe instr
main()
{
int a,b;
a=(a=(a+b),b=(a-b),a-b);
-------
-------
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how can f be used for both float and double arguments in printf? Are not they different types?

1079


Write a code of a general series where the next element is the sum of last k terms.

1045


What is the purpose of macro in C language?

1127


What language is lisp written in?

1275


code for replace tabs with equivalent number of blanks

2169


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1177


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

1189


How are strings stored in c?

1027


How can I write functions that take a variable number of arguments?

1138


What are multibyte characters?

1141


Explain what are reserved words?

1115


How would you use the functions fseek(), freed(), fwrite() and ftell()?

1169


Explain union. What are its advantages?

1082


What is array in C

1173


What is wrong with this statement? Myname = 'robin';

1332