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 prgram of swapping with 2 valiables

Answer Posted / aruna.r

#include<stdio.h>
#include<conio.h>
void main()
{
int a=6;
int b=5;
int temp;
temp=a;
a=b;
b=temp;
printf("a & b value %d,%d",a,b);
getch();
}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you allocate arrays or structures bigger than 64K?

1150


List some of the static data structures in C?

1204


What are the disadvantages of a shell structure?

1355


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

1071


What is c basic?

1184


What is formal argument?

1141


What is wrong with this declaration?

1111


What is ambagious result in C? explain with an example.

2638


Is anything faster than c?

1016


What is equivalent to ++i+++j?

1097


What is #define in c?

1052


What is the difference between malloc() and calloc()?

1871


How can I implement sets or arrays of bits?

1049


What is selection sort in c?

1108


What are predefined functions in c?

1109