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 / harika

main()
{
int a=2,b=3;
a^=b^=a^=b;
printf("%d,%d",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

In a switch statement, explain what will happen if a break statement is omitted?

996


What is break statement?

1054


Explain how can I convert a number to a string?

1099


Why do we use stdio h and conio h?

1031


What library is sizeof in c?

1034


Does c have class?

1050


can we implement multi-threads in c.

1086


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1167


What is the use of a semicolon (;) at the end of every program statement?

1410


Write a c program to build a heap method using Pointer to function and pointer to structure ?

4621


What is #include stdio h and #include conio h?

1037


What is page thrashing?

1026


What are 3 types of structures?

1024


p*=(++q)++*--p when p=q=1 while(q<=6)

1695


What is the difference between text and binary i/o?

995