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...

HOW TO SWAP TWO NOS IN ONE STEP?

Answer Posted / shiva kumar

void main()
{
int a,b;
printf("Enter two numbers\n");
scanf("%d%d",&a,&b);
b=a+b-(a=b);
printf("%d %d ",a,b);
}

Is This Answer Correct ?    28 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is getche() function?

1088


write a c program for swapping two strings using pointer

2687


What is a far pointer in c?

1098


Why void main is used in c?

1103


Explain the binary height balanced tree?

1237


What are the types of variables in c?

1079


What is a protocol in c?

1055


can anyone suggest some site name..where i can get some good data structure puzzles???

2157


Write a program to print numbers from 1 to 100 without using loop in c?

1136


Why is it important to memset a variable, immediately after allocating memory to it ?

2133


What is a function simple definition?

1164


explain what is fifo?

1131


how logic is used

2023


Apart from dennis ritchie who the other person who contributed in design of c language.

1476


What language is c written?

1098