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 interchange two variables without using
the third variable?

Answer Posted / raghavendra

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
a=a*b;
b=a/b;
a=a/b;
printf("After chanching no is =\n");
printf("a=%d b=%d",a,b);
getch();
}

Is This Answer Correct ?    6 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why doesnt long int work?

982


Why do we need functions in c?

958


Write a program to swap two numbers without using third variable?

1251


Write a program to check palindrome number in c programming?

967


What is a function simple definition?

1033


What are the benefits of organizational structure?

974


What is data structure in c and its types?

1022


Do character constants represent numerical values?

1288


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2581


How do you determine the length of a string value that was stored in a variable?

1083


How can you access memory located at a certain address?

1064


How can I access an I o board directly?

1040


Which is an example of a structural homology?

1250


How do you view the path?

1078


The __________ attribute is used to announce variables based on definitions of columns in a table?

1135