#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
Which is the best website to learn c programming?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
How can I implement sets or arrays of bits?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are enums in c?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
What is typeof in c?
Explain what is the difference between text files and binary files?
What is restrict keyword in c?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is the use of pointers in C?
In a header file whether functions are declared or defined?
How can you find the exact size of a data type in c?
What does p mean in physics?
What is the advantage of a random access file?