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...

HOW TO SWAP TWO NOS IN ONE STEP?

Answer Posted / venkatesh sabinkar

#include<stdio.h>
#include<conio.h>
void main()
{
int a=5,b=2,t;
clrscr();
printf("a=%d,b=%d",a,b,b=t,a=b,t=a);
getch();
}

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the format %10.2 mean when included in a printf statement?

1709


What is a good way to implement complex numbers in c?

1091


What is header file definition?

1138


What is the difference between ā€˜g’ and ā€œgā€ in C?

4093


plz let me know how to become a telecom protocol tester. thank you.

2239


Do you know what are the properties of union in c?

1131


What is pointers in c?

1167


Create a simple code fragment that will swap the values of two variables num1 and num2.

1329


Is c call by value?

1079


What is the benefit of using #define to declare a constant?

1150


How can I read and write comma-delimited text?

1123


What are volatile variables in c?

995


Why is sprintf unsafe?

1132


What is the difference between ++a and a++?

1274


Is a house a shell structure?

1214