#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
What is cohesion and coupling in c?
explain what is a newline escape sequence?
What does malloc () calloc () realloc () free () do?
List the difference between a "copy constructor" and a "assignment operator"?
Explain how do you search data in a data file using random access method?
Explain the use of function toupper() with and example code?
How do c compilers work?
What is the acronym for ansi?
Why is not a pointer null after calling free?
When do we get logical errors?
Can the curly brackets { } be used to enclose a single line of code?
What are static variables in c?
Give the rules for variable declaration?
What does c mean before a date?
What are the key features in c programming language?