#include <stdio.h>
#define max( a, b) a > b ? a:b
int main()
{
int i, j = 10;
int k = 15;
for( i = 0; i < max( j, k ); i++ ) {
printf( "\nhi" );
}
return 0;
}
The above code generates an infinite loop.. Why so ??
Why the value of expression
i < max( j, k)
is 15 ? Why not 1 or 0 ??