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

What is pointer in c?

1187


write a program fibonacci series and palindrome program in c

1032


Are there any problems with performing mathematical operations on different variable types?

1036


Can 'this' pointer by used in the constructor?

1087


What are the advantages and disadvantages of c language?

1008


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1024


number of times a digit is present in a number

2033


What is int main () in c?

1081


What are the usage of pointer in c?

1188


Is null valid for pointers to functions?

1162


What does the function toupper() do?

1115


What is bubble sort in c?

1047


What is the use of the function in c?

1014


What is the use of sizeof?

1011


What are volatile variables in c?

934