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 / deepa.n

#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=b/a;
printf("After chanching no is =\n");
printf("a=%d b=%d",a,b);
getch();
}

Is This Answer Correct ?    8 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is static volatile in c?

976


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

1010


How do you print an address?

1212


The difference between printf and fprintf is ?

1213


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2018


Explain how can you be sure that a program follows the ansi c standard?

1398


What is %d used for?

992


What is the difference between abs() and fabs() functions?

1060


What is pragma in c?

1130


What is static memory allocation? Explain

1033


What is union and structure in c?

1149


What are structures and unions? State differencves between them.

1100


can we have joblib in a proc ?

2231


Explain how can you tell whether two strings are the same?

971


Why is c still so popular?

1005