#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
Why is c called "mother" language?
What is union and structure in c?
What is meant by 'bit masking'?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
Explain union.
What does 3 mean in texting?
Write a program to implement queue.
What is size of union in c?
What is the difference between typedef struct and struct?
What is structure packing in c?
Why c is called procedure oriented language?
What is the difference between if else and switchstatement
What is the explanation for the dangling pointer in c?
Explain the process of converting a Tree into a Binary Tree.
Is linux written in c?