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

What is local and global variable in c?

1249


When should a type cast not be used?

1107


What is the difference between test design and test case design?

2130


How can you restore a redirected standard stream?

1172


What is the difference between the expression “++a” and “a++”?

1270


What is a good way to implement complex numbers in c?

1088


What are the 4 data types?

1056


What is the general form of #line preprocessor?

1039


How can you access memory located at a certain address?

1161


How can you allocate arrays or structures bigger than 64K?

1200


Differentiate between Macro and ordinary definition.

1463


What is typedef example?

1257


What are the application of c?

1159


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2244


Define the scope of static variables.

1193