#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


Please Help Members By Posting Answers For Below Questions

How do you use a 'Local Block'?

710


What is the symbol indicated the c-preprocessor?

686


Write a program to print “hello world” without using semicolon?

661


How many types of sorting are there in c?

594


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2519






What is wrong with this program statement?

600


Write a Program to find whether the given number or string is palindrome.

603


How can I open files mentioned on the command line, and parse option flags?

579


What is call by value in c?

544


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

1874


What does sizeof int return?

574


can anyone suggest some site name..where i can get some good data structure puzzles???

1636


What are the different types of C instructions?

661


What is the difference between exit() and _exit() function in c?

566


What is void main () in c?

718