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 find the exact size of a data type in c?

1045


What is extern variable in c with example?

1056


Tell us two differences between new () and malloc ()?

1275


What is the use of getch ()?

1118


What is build process in c?

1205


In C, What is the #line used for?

2327


Explain how can I manipulate strings of multibyte characters?

1256


How can you increase the size of a statically allocated array?

1120


Is c high or low level?

1053


What is the purpose of macro in C language?

1163


What are the two types of structure?

1143


When do we get logical errors?

1173


Does c have class?

1180


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1115


Write program to remove duplicate in an array?

1131