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

main()
{
int a=2,b=3;
a^=b^=a^=b;
printf("%d,%d",a,b);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the stack in c?

1130


Stimulate calculator using Switch-case-default statement for two numbers

2984


What is the use of function overloading in C?

1163


Describe wild pointers in c?

1108


What is a function simple definition?

1093


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

2121


how many errors in c explain deply

2085


List some of the dynamic data structures in C?

1238


There seem to be a few missing operators ..

1047


Is it possible to use curly brackets ({}) to enclose single line code in c program?

1316


Is null a keyword in c?

1194


Can you add pointers together? Why would you?

1123


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

1105


What is equivalent to ++i+++j?

1088


Differentiate between declaring a variable and defining a variable?

1033