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?

Answers were Sorted based on User's Feedback



HOW TO SWAP TWO NOS IN ONE STEP?..

Answer / rahul

Put mirror on SWAP. You can see the reverse on the mirror.

Is This Answer Correct ?    0 Yes 2 No

HOW TO SWAP TWO NOS IN ONE STEP?..

Answer / n.ramesh

#include(stdio.h);
#include(stdlib.h);
void main()
{
int a=10,b=20;
swap(a,b);
a=b&b=a;
printf("%d%d",a,b);
}

Is This Answer Correct ?    3 Yes 8 No

HOW TO SWAP TWO NOS IN ONE STEP?..

Answer / 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

HOW TO SWAP TWO NOS IN ONE STEP?..

Answer / ashik

#define SWAP(x,y) int t;t=x;x=y;y=t;

Is This Answer Correct ?    2 Yes 10 No

HOW TO SWAP TWO NOS IN ONE STEP?..

Answer / priya

int a=5,b=2;
printf("%d %d");


execute the pgm deftly swap wil tak place.......

Is This Answer Correct ?    3 Yes 12 No

HOW TO SWAP TWO NOS IN ONE STEP?..

Answer / sasa

step 1.
a=b,b=a

Is This Answer Correct ?    0 Yes 35 No

Post New Answer

More C Interview Questions

What is a global variable in c?

0 Answers  


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

0 Answers  


What is the result main() { char c=-64; int i=-32 unsigned int u =-16; if(c>i){ printf("pass1,"); if(c<u) printf("pass2"); else printf("Fail2");} else printf("Fail1); if(i<u) printf("pass2"); else printf("Fail2") } a)Pass1,Pass2 b)Pass1,Fail2 c)Fail1,Pass2 d)Fail1,Fail2 e)none

9 Answers   IBM,


What does the error 'Null Pointer Assignment' mean and what causes this error?

0 Answers   TISL,


Can the sizeof operator be used to tell the size of an array passed to a function?

0 Answers  


What are two dimensional arrays alternatively called as?

0 Answers  


Symmetric technologies interview questions. For Computer science candidates the first round is a objective type written test consisting of 16 questions.It is very easy ,any police man can solve this. And next round is a written test consists of both objective and subjective .Total 40 question related to c,c++ and operating system related questions. And then a technical interview and give some program to solve with computer.The md is adamant person, whatever he says we have to accept that is the condition. And one more thing ,,,these interview is just for a formality..the company will select only innocent guys.. the person's without a backbone only they require.. And u have to submit the certificates this is the most important problem...So if you are not getting any other jobs..then only join with this... It is better to try for other company...And apart from that symmetric do a lot of projects..If a candidate can manage everything u can join and make good career with this company... The Md will normally speak rudely..but he is good person and he will give you a lot of very good chances to improve your career....but with cheap salary....

0 Answers   Symmetric Technologies,


What is Generic pointer? What is the purpose of Generic pointer? Where it is used?

3 Answers  


How can you be sure that a program follows the ANSI C standard?

0 Answers   Aspire, Infogain,


code for find determinent of amatrix

0 Answers  


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

0 Answers  


what is the difference between structural,object based,object orientd programming languages?

1 Answers   PanTerra,


Categories