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

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("enter the value a & b");
scanf("%d%d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("interchange in a & b =%d%d",a,b);
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

1152


What is the advantage of a random access file?

1251


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

1251


What is context in c?

975


Can we declare function inside main?

1047


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2494


how we can make 3d venturing graphics on outer interface

4895


For what purpose null pointer used?

1111


Why c is called procedure oriented language?

1102


write a program to rearrange the array such way that all even elements should come first and next come odd

2348


Is c high or low level?

1052


Explain how can you check to see whether a symbol is defined?

1244


What are the different categories of functions in c?

1177


What does %d do in c?

1007


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

2456