Name: Anonymous 2011-03-12 1:32
Hi /prog/
I just notice this strange thing in C:
int a[4];
#define n (sizeof(a) / sizeof(a[0]))
int d = n;
if (-1 < n) {
printf("yup\n");
}
if (-1 < d) {
printf("cuack\n");
}
Why is that it doesn't print "yup"?
I just notice this strange thing in C:
int a[4];
#define n (sizeof(a) / sizeof(a[0]))
int d = n;
if (-1 < n) {
printf("yup\n");
}
if (-1 < d) {
printf("cuack\n");
}
Why is that it doesn't print "yup"?