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 program to swap Two numbers without using temp variable.

Answer Posted / gouttam pradhan

#include<stdio.h>
main()
{
int a,b;
printf("enter two numbers");
scanf("%d%d",&a&b);
a=a+b;
b=a-b;
a=a-b;
printf("swaped valuess= ",);
printf("a=%d",a);
printf("b=%d",b);
getch();
}

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the full form of getch?

1268


Explain the difference between null pointer and void pointer.

1077


Explain how can you check to see whether a symbol is defined?

1167


What is use of pointer?

1079


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2067


What is hashing in c language?

1301


#include { printf("Hello"); } how compile time affects when we add additional header file .

1888


Explain what is operator promotion?

1084


What is the use of parallelize in spark?

1026


Function calling procedures? and their differences? Why should one go for Call by Reference?

1081


WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..

2044


What is memory leak in c?

1123


Explain the concept and use of type void.

1110


What is the purpose of realloc()?

1139


Simplify the program segment if X = B then C ← true else C ← false

3001