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 prgram of swapping with 2 valiables

Answer Posted / aruna.r

#include<stdio.h>
#include<conio.h>
void main()
{
int a=6;
int b=5;
int temp;
temp=a;
a=b;
b=temp;
printf("a & b value %d,%d",a,b);
getch();
}

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a lvalue

1039


what is the difference between class and unio?

2304


Why is c called c not d or e?

1047


Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"

2032


What is typedef struct in c?

996


How can type-insensitive macros be created?

1126


What is the difference between procedural and functional programming?

1006


How do you determine whether to use a stream function or a low-level function?

1080


Are there any problems with performing mathematical operations on different variable types?

989


`write a program to display the recomended action depends on a color of trafic light using nested if statments

2074


What is d'n in c?

1071


What will be your course of action for a push operation?

1049


What is meant by int main ()?

1154


What are conditional operators in C?

1047


What does %p mean?

1031