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

What happens if a header file is included twice?

1076


Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?

1099


Why is sprintf unsafe?

1129


What are conditional operators in C?

1142


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

1082


What are 3 types of structures?

1104


How do c compilers work?

1199


What is the purpose of & in scanf?

1121


What is the Purpose of 'extern' keyword in a function declaration?

1142


Why is struct padding needed?

1157


Write a program to print "hello world" without using a semicolon?

1119


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2159


Why c language is called c?

1063


What does %c mean in c?

1139


Is stack a keyword in c?

1148