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

int a, b;

printf("a=");
scanf("%d",&a);
printf("b=");
scanf("%d",&b);


printf("a = %d\nb = %d\n",b,a);
return 0;

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a value that does not change during program execution a) variabe b) argument c) parameter d) none

1234


How can I write a function analogous to scanf?

1177


What is difference between arrays and pointers?

1063


why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???

1964


What is difference between far and near pointers?

1036


What is meant by errors and debugging?

1099


What are the benefits of organizational structure?

1019


In c programming language, how many parameters can be passed to a function ?

1106


Why doesn't C support function overloading?

2746


Why is c so important?

1060


Is register a keyword in c?

1035


Explain how can I convert a string to a number?

1090


Explain two-dimensional array.

1060


What is the meaning of && in c?

1013


program for reversing a selected line word by word when multiple lines are given without using strrev

2475