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 the value between two variable
without using loop

Answer Posted / mudita rathore

#include<stdio.h>
void main()
{
int a,b,temp;
printf("enter value of a=");
scanf("%d",&a);
printf("enter the value of b=");
scanf("%d",&b);
temp=a;
a=b;
b=temp;
printf("a=%d b=%d",a,b);
}

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the data segment that is followed by c?

1043


Why do we write return 0 in c?

1014


How old is c programming language?

975


What is the difference between array_name and &array_name?

1256


What is array of structure in c programming?

1254


How can I open a file so that other programs can update it at the same time?

1152


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1239


What is the difference between char array and char pointer?

1005


What is c programing language?

1058


What are the similarities between c and c++?

1024


List out few of the applications that make use of Multilinked Structures?

2133


How can I call a function with an argument list built up at run time?

1186


What are variables c?

1008


Explain why C language is procedural?

1171


write a program to generate address labels using structures?

4537