3 ms·
With and without it, trying to compile this: long a = 10; int b = 20; printf("min is %ld\n", min(a, b)); With, it generates a warning: davidw
by davidw 18y ago
With and without it, trying to compile this:
long a = 10;
int b = 20;
printf("min is %ld\n", min(a, b));
With, it generates a warning:
davidw@fortrock:/tmp$ gcc -o min min.c
min.c: In function ‘main’:
min.c:13: warning: comparison of distinct pointer types lacks a cast
Without, there is no warning.