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

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
d=0;
printf("enter a");
scanf("%d",&a);
printf("enter b");
scanf("%d",&b);
c=a;
a=b;
b=c;
printf("a & b value are%d%d",a,b);
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1201


Linked lists -- can you tell me how to check whether a linked list is circular?

1032


What is const volatile variable in c?

982


Do you know the use of 'auto' keyword?

1129


Where local variables are stored in c?

957


What is the importance of c in your views?

1094


Why c is a mother language?

965


Is boolean a datatype in c?

1011


What is mean by Data Driven framework in QTP? Can any one answer me in details on this regard.

2204


What are # preprocessor operator in c?

1044


What is the purpose of main( ) in c language?

1090


What is a function simple definition?

1032


Do you know pointer in c?

993


How pointers are declared?

907


Is c# a good language?

963