#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 / ashish rajvanshi
My dear frnds its a simple question
here the code of macro inserted in the program at the time of preprocessing and then the calculation will performed.
and then it will be calculated.
void main()
{
int i,j, temp;
i=5;
j=10;
temp=0;
if(i>j)
temp=a;
a=b;
b=temp;
printf("%d %d %d" , i , j , temp);
}
for further detail contect at(ashish.raj.mrt@gmail.com)
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What is the purpose of clrscr () printf () and getch ()?
I heard that you have to include stdio.h before calling printf. Why?
Which is better malloc or calloc?
Give differences between - new and malloc() , delete and free() ?
How can you increase the size of a dynamically allocated array?
What is a scope resolution operator in c?
What is the difference between abs() and fabs() functions?
List some applications of c programming language?
Differentiate between Macro and ordinary definition.
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none
What is #include called?
What is the difference between scanf and fscanf?
What is p in text message?
What is scope and lifetime of a variable in c?