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 exchange two variaables without temp

Answer Posted / srinivas

main()
{
int a=3,b=2;

a = (a+b)-(b=a);

printf("a=%d,b=%d",a,b);
}
o/p:- a=2,b=3

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I call system when parameters (filenames, etc.) Of the executed command arent known until run time?

1048


application attempts to perform an operation?

1933


What are the modifiers available in c programming language?

1188


write a programming in c to find the sum of all elements in an array through function.

2142


write a c program to find the sum of five entered numbers using an array named number

2094


What is array in c with example?

1195


What is the difference between char array and char pointer?

1008


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

1212


Write a program in c to replace any vowel in a string with z?

1093


the question is that what you have been doing all these periods (one year gap)

2045


What is time complexity c?

962


What are the types of bitwise operator?

1072


Explain threaded binary trees?

1132


Are bit fields portable?

1128


What is the 'named constructor idiom'?

1055