#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 / abhijeet

my frnd, C is dumb compiler. It doesn't know what actually
we mean.
Here, in this program, we have defined 1 macro. Ok
this macro wil be inserted and expanded into code.
this gives the unpredicted result. U try and find out what i
mean to say.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is cohesion and coupling in c?

574


explain what is a newline escape sequence?

669


What does malloc () calloc () realloc () free () do?

544


List the difference between a "copy constructor" and a "assignment operator"?

568


Explain how do you search data in a data file using random access method?

681






Explain the use of function toupper() with and example code?

633


How do c compilers work?

594


What is the acronym for ansi?

613


Why is not a pointer null after calling free?

577


When do we get logical errors?

621


Can the curly brackets { } be used to enclose a single line of code?

701


What are static variables in c?

608


Give the rules for variable declaration?

659


What does c mean before a date?

573


What are the key features in c programming language?

595