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 do you mean by Recursion Function?

1083


write an algorithm to display a square matrix.

2663


Why string is used in c?

962


simple program of graphics and their output display

1956


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

975


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

16632


What is the scope of an external variable in c?

1000


"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks

1072


Explain what are preprocessor directives?

1029


What is the difference between %d and %i?

1062


Tell me about low level programming languages.

1083


What is the right way to use errno?

1015


What are the types of macro formats?

1070


What is #include called?

1007


write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.

5415