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

main()
{
int a,b,c;
printf("enter a,b value");
scanf("%d%%d",&a,&b);
c=a^=b^=a^=b;
printf("%d",c);
}

Is This Answer Correct ?    67 Yes 150 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is zero based addressing?

1109


Describe wild pointers in c?

1060


Explain why C language is procedural?

1164


What is the auto keyword good for?

1064


What is the use of bit field?

1116


What is getch() function?

1008


What is meant by preprocessor in c?

947


How to write a multi-statement macro?

988


Is array name a pointer?

993


What are the modifiers available in c programming language?

1173


What is sizeof c?

1001


Explain what is wrong with this statement? Myname = ?robin?;

1522


What are derived data types in c?

1007


What is fflush() function?

1079


How to establish connection with oracle database software from c language?

2141