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...

How to write the code of the program to swap two numbers
with in one statement?

Answer Posted / manoj kumar shukla

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

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can include files be nested?

1162


What is null pointer constant?

1280


Difference between exit() and _exit() function?

1177


find out largest elemant of diagonalmatrix

2325


What is the difference between scanf and fscanf?

1343


Why main is used in c?

1128


What are the uses of null pointers?

1198


How do you define CONSTANT in C?

1367


How can I open files mentioned on the command line, and parse option flags?

1104


What does d mean?

1168


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

1104


Can you explain what keyboard debouncing is, and where and why we us it? please give some examples

2247


Why functions are used in c?

1198


plz let me know how to become a telecom protocol tester. thank you.

2239


What is the difference between array and pointer in c?

1230