#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
Is null a keyword in c?
Are negative numbers true in c?
Write the control statements in C language
Why is it usually a bad idea to use gets()? Suggest a workaround.
What is character set?
How do you declare a variable that will hold string values?
How do you construct an increment statement or decrement statement in C?
please explain every phase in the "SDLC" in the dotnet.
How does struct work in c?
Difference between Function to pointer and pointer to function
What is the meaning of c in c language?
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.
What is c language used for?
What are the differences between new and malloc in C?
What is bash c?