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

#include<conio.h>
#include<stdio.h>

int main()
{
int a,b;
printf("Enter the first number\n");
scanf("%d",&a);
printf("Enter the second number\n");
scanf("%d",&b);
printf("your answer is %d %d",b,a);
getch();
return 0;
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where define directive used?

1085


What is array of structure in c?

1164


Does c have circular shift operators?

1228


Can I initialize unions?

1034


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1183


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1213


Are the variables argc and argv are local to main?

1307


What are enumerated types?

1179


Can you pass an entire structure to functions?

1114


How can I generate floating-point random numbers?

1125


What is difference between structure and union with example?

1046


Why doesnt this code work?

1055


What does printf does?

1234


What is #define used for in c?

1057


What is the significance of c program algorithms?

1137