#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


Please Help Members By Posting Answers For Below Questions

Is null a keyword in c?

726


Are negative numbers true in c?

584


Write the control statements in C language

639


Why is it usually a bad idea to use gets()? Suggest a workaround.

888


What is character set?

675






How do you declare a variable that will hold string values?

659


How do you construct an increment statement or decrement statement in C?

731


please explain every phase in the "SDLC" in the dotnet.

2173


How does struct work in c?

600


Difference between Function to pointer and pointer to function

621


What is the meaning of c in c language?

586


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

615


What is c language used for?

551


What are the differences between new and malloc in C?

598


What is bash c?

548