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

Explain what is #line used for?

1075


What is unary operator?

1110


What is static memory allocation?

1187


What is hashing in c language?

1322


What are the 5 types of organizational structures?

1085


How was c created?

1072


Write a program in c to replace any vowel in a string with z?

1135


What is indirection in c?

1077


c language interview questions & answer

1968


What are the advantages of Macro over function?

2031


What is the difference between local variable and global variable in c?

1239


What are global variables and explain how do you declare them?

1109


What is an operator?

1081


what value is returned to operating system after program execution?

2127


What is the explanation for prototype function in c?

992