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 |
#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
Can the “if” function be used in comparing strings?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Describe explain how arrays can be passed to a user defined function
How will you find a duplicate number in a array without negating the nos ?
Write a program to print factorial of given number without using recursion?
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }
What is unary operator?
How to add two numbers with using function?
What is the Difference between Class and Struct?
Can u return two values using return keyword? If yes, how? If no, why?
# define prod(a,b)=a*b main() { int x=2; int y=3; printf("%d",prod(x+2,y-10)); } the output of the program is a.8 b.6 c.7 d.none