#include<stdio.h>
#include<conio.h>
# define swap(a,b) temp=a; a=b; b=temp;
void main( )
{
int i, j, temp;
i=5;
j=10;
temp=0;
if( i > j)
swap( i, j );
printf( "%d %d %d", i, j, temp);
}
Answer Posted / vinodhini
The output will be
5100
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between mpi and openmp?
What is assignment operator?
Explain b+ tree?
What is the use of gets and puts?
What do you mean by dynamic memory allocation in c?
When is a “switch” statement preferable over an “if” statement?
Is a house a shell structure?
Is c weakly typed?
Is it possible to pass an entire structure to functions?
Can we initialize extern variable in c?
Write a program to know whether the input number is an armstrong number.
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
write a program to concatenation the string using switch case?
How are pointers declared in c?
What is union and structure in c?