guess the o/p

int main()
{
int a,b,c,d;
char *p = ( char *)0;
int *q = ( int *)0;
float *r = ( float *)0;
double *s = 0;
a = (int)(p+1);
b = (int)(q+1);
c = (int)(r+1);
d = (int)(s+1);
printf("%d %d %d %d",a,b,c,d);
return 0;
}

guess the o/p on gcc compiler.

Comments

Popular posts from this blog