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 the process to create increment and decrement stamen in c?

1056


What are the storage classes in C?

1157


How can I find out the size of a file, prior to reading it in?

1170


Explain how do you search data in a data file using random access method?

1131


What does. int *x[](); means ?

1063


How will you find a duplicate number in a array without negating the nos ?

2128


What is c basic?

1166


Explain modulus operator.

1050


How can I swap two values without using a temporary?

1099


What is the difference between #include

and #include “header file”?

1023


What is the purpose of & in scanf?

1066


How can I trap or ignore keyboard interrupts like control-c?

1062


What is the benefit of using const for declaring constants?

1044


Is there a way to jump out of a function or functions?

1091


how to construct a simulator keeping the logical boolean gates in c

2251