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

#include<stdio.h>
#include<conio.h>
void swap(int a,int b);
void main()
{
int a,b;
swap(a,b);
printf("Enter the 2 nos");
scanf("%d%d",&a,&b);
}
void swap(int x,int y)
{
x=x*y;
y=x/y;
x=x/y;

}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many levels deep can include files be nested?

1144


What oops means?

1007


List the different types of c tokens?

1076


about c language

2027


Can a variable be both constant and volatile?

1130


Where static variables are stored in c?

1112


Explain what does the format %10.2 mean when included in a printf statement?

1367


What is a loop?

1070


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1253


Write a program to show the change in position of a cursor using c

1075


By using C language input a date into it and if it is right?

1087


What is a memory leak? How to avoid it?

1352


How can I find out how much free space is available on disk?

1059


What is 2c dna?

1085


Is c object oriented?

975