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 are the header files used in c language?

997


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

1219


Write a Program to accept different goods with the number, price and date of purchase and display them

6151


write a c program to find the sum of five entered numbers using an array named number

2079


Do array subscripts always start with zero?

1240


Should I learn data structures in c or python?

979


Write a C program in Fibonacci series.

1049


What is function what are the types of function?

951


What is the difference between array and structure in c?

1090


How can I ensure that integer arithmetic doesnt overflow?

1087


What are identifiers c?

1024


Write a program to print ASCII code for a given digit.

1040


write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

2188


Write a factorial program using C.

1021


Is int a keyword in c?

910