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

main()
{
printf("enter two number");
scanf("%d%d",&a,&b);
printf("swaped result is b=%d\na=%d",b,a);
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9

2610


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1178


Explain what header files do I need in order to define the standard library functions I use?

1132


Explain data types & how many data types supported by c?

1040


What is the difference between functions getch() and getche()?

1056


How can I send mail from within a c program?

1000


Explain Basic concepts of C language?

1098


please send me the code for multiplying sparse matrix using c

2135


How can I find out how much free space is available on disk?

1027


What is the heap?

1176


i want to switch my career from quailty assurance engineering to development kindly guide me from which programming language its better for me to start plz refer some courses or certifications too i have an experience of 1.5 yrs in QA field.Kindly guide me

1866


Why we use void main in c?

1121


Explain the use of bit fieild.

1109


Explain what is the benefit of using #define to declare a constant?

1124


What do the functions atoi(), itoa() and gcvt() do?

1153