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

main()
{
int a=2,b=3;
a=a+b;
b=a-b;
a=a-b;
printf("%d",&a);
printf("%d",&b);
getch();
}

Is This Answer Correct ?    72 Yes 27 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c call by value?

964


What is function prototype?

1053


What are the characteristics of arrays in c?

990


What is pragma in c?

1124


When is a void pointer used?

1189


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1352


Do you know the difference between malloc() and calloc() function?

1002


How do you define a string?

1043


How to find a missed value, if you want to store 100 values in a 99 sized array?

1355


formula to convert 2500mmh2o into m3/hr

939


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

989


Explain union. What are its advantages?

1005


What is the use of putchar function?

1005


What is the use of linkage in c language?

1009


Explain what is output redirection?

1133