Hi,
Can any body explain me the output of following:
Code:#include<stdio.h> int array[]={1,2,3,4,5,6,7,8}; #define SIZE (sizeof(array)/sizeof(int)) int main() { printf("%d",SIZE); if(-1<=SIZE) printf("1"); else printf("2"); return 0; }SIZE is greater than -1 so it should print 2. It's working fine with positive numbers.
8
2
Thanks