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

void main()
{
int a=10,b=5;
a=a^b;
b=a^b;
a=a^b;

}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to print ASCII code for a given digit.

1101


What is null pointer in c?

1003


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2256


What is default value of global variable in c?

994


What is #line in c?

1020


What is assert and when would I use it?

1016


What does %d do in c?

968


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

1287


Differentiate between ordinary variable and pointer in c.

1190


What is a stream?

1153


How many types of arrays are there in c?

1049


Why do some versions of toupper act strangely if given an upper-case letter?

1079


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1947


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1085


How is actual parameter different from the formal parameter?

1026