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

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
a=b-0;
b=a-0;
printf("a=%d b=%d",a,b);
getch();
}

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does *p++ do?

983


What is operator precedence?

1163


What is boolean in c?

1046


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

2021


What is default value of global variable in c?

954


how can I convert a string to a number?

1045


What are linker error?

1050


What is an auto variable in c?

1182


Do you know the use of 'auto' keyword?

1145


Simplify the program segment if X = B then C ← true else C ← false

2973


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

1078


What is array in C

1111


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

2293


Who is the founder of c language?

1131


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3273