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 program to swap Two numbers without using temp variable.

Answer Posted / raghavendra

a=3;
b=2;
a=a^b;
b=a^b;
a=a^b;
printf("%d%d",a,b);

Is This Answer Correct ?    34 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what will be the output for the following main() { printf("hi" "hello"); }

11014


i have a written test for microland please give me test pattern

2735


Can we initialize extern variable in c?

1140


What is void c?

1097


How can I open a file so that other programs can update it at the same time?

1187


Explain what is a pragma?

1051


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1418


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

1158


What is this infamous null pointer, anyway?

1062


Explain is it valid to address one element beyond the end of an array?

1221


What is c token?

1074


Explain the use of keyword 'register' with respect to variables.

1056


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

2044


What are loops in c?

1011


Can you assign a different address to an array tag?

1177