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 |
What is Dynamic Initialization.
What is ## preprocessor operator in c?
What is the significance of c program algorithms?
What is #line used for?
Is a house a shell structure?
write a program to sort the elements in a given array in c language
What is the general form of function in c?
writ a program to compare using strcmp VIVA and viva with its output.
Is there a way to switch on strings?
Differentiate between null and void pointers.
for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????
Explain modulus operator. What are the restrictions of a modulus operator?