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

Explain how to reverse singly link list.

1148


Write a C program to count the number of email on text

1921


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

1213


How can variables be characterized?

2193


Which is better between malloc and calloc?

1205


difference between native and cross compilers

2135


How can I automatically locate a programs configuration files in the same directory as the executable?

1175


Can a program have two main functions?

1132


Are bit fields portable?

1162


Explain the red-black trees?

1134


What is typeof in c?

1018


How can I do peek and poke in c?

1082


Are local variables initialized to zero by default in c?

1053


count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array

1096


What is a null pointer in c?

1235