Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: