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

How to get string length of given string in c?

1010


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

1059


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1328


Is c++ based on c?

1023


What are c preprocessors?

1124


What are the functions to open and close the file in c language?

986


What does 4d mean in c?

1448


What is const volatile variable in c?

982


What is the meaning of && in c?

963


Is c a great language, or what?

1050


write a program to copy the string using switch case?

2843


Explain the use of fflush() function?

1025


What is the purpose of the statement: strcat (S2, S1)?

1076


What is "Duff's Device"?

1114


What is the advantage of using #define to declare a constant?

1037