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

I need a sort of an approximate strcmp routine?

1033


Can we use visual studio for c?

1101


difference between native and cross compilers

2135


Is there any demerits of using pointer?

1075


Explain how can I remove the trailing spaces from a string?

1052


What is a far pointer in c?

1047


What is operator promotion?

1078


What is array in C

1169


What is a built-in function in C?

1608


Write a program to reverse a string.

1086


What is difference between structure and union?

1135


What are high level languages like C and FORTRAN also known as?

1176


What is structure of c program?

1168


Should I learn data structures in c or python?

1028


Process by which one bit pattern in to another by bit wise operation is?

1170