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 in C to swap two variables

Answer Posted / anju

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,temp;
scanf("%d%d",&a,&b);
printf("before swapping value of a=%d and b=%d",a,b);
temp=x;
x=y;
y=temp;
printf("after swapping value of a=%d and b=%d",a,b);
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a sequential access file?

1113


Mention four important string handling functions in c languages .

1054


How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

982


Is there sort function in c?

976


write a program to rearrange the array such way that all even elements should come first and next come odd

2235


Combinations of fibanocci prime series

1560


What are predefined functions in c?

1042


What is a pointer variable in c language?

1042


What is data type long in c?

1033


Explain the binary height balanced tree?

1133


Explain how do you print an address?

1097


What are the uses of null pointers?

1046


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

2057


What is p in text message?

941


explain what are actual arguments?

1042