HOW TO SWAP TWO NOS IN ONE STEP?
Answers were Sorted based on User's Feedback
Answer / rahul
Put mirror on SWAP. You can see the reverse on the mirror.
| Is This Answer Correct ? | 0 Yes | 2 No |
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 |
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 |
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 |
write a program to copy the string using switch case?
write a program in c to read array check element is present or not?
plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.
What is the c value paradox and how is it explained?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
How can variables be characterized?
What is string in c language?
What are all different types of pointers in c?
What is an lvalue in c?
What is the importance of c in your views?
How can I find out the size of a file, prior to reading it in?
Explain how can a program be made to print the line number where an error occurs?