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

main()
{
int a=2,b=3;
a=a+b;
b=a-b;
a=a-b;
printf("%d",&a);
printf("%d",&b);
getch();
}

Is This Answer Correct ?    72 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I implement sets or arrays of bits?

1008


Why is c called "mother" language?

1248


How are structure passing and returning implemented?

1007


Explain what is the benefit of using const for declaring constants?

986


How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1342


What is sorting in c plus plus?

949


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

10870


How can I manipulate strings of multibyte characters?

1094


What is void main () in c?

1165


Why double pointer is used in c?

1003


Write a program to check armstrong number in c?

1103


What is your stream meaning?

1155


How can you read a directory in a C program?

1109


What is pointers in c with example?

1037


Tell me with an example the self-referential structure?

963