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 / eranna kybarshi

#include<stdio.h>
#include<conio.h>
void main()
{
int x,y;
clrscr();

printf("Enter 'x' value :");
scanf("%d",&x);

printf("\nEnter 'y' value :");
scanf("%d",&y);

x=x+y;
y=x-y;
x=x-y;
printf("\nAfter swaping x= %d,y= %d ",x,y);

getch();
}

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

2308


hi any body pls give me company name interview conduct "c" language only

2323


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1188


How many types of operators are there in c?

1088


find the sum of two matrices and WAP for it.

1195


Write a c program to demonstrate character and string constants?

2246


Is c weakly typed?

1073


How can variables be characterized?

2238


What is 'bus error'?

1208


Can the curly brackets { } be used to enclose a single line of code?

1217


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2097


explain how do you use macro?

1207


How can you check to see whether a symbol is defined?

1140


What is a null pointer in c?

1310


What is a static function in c?

1241