Thursday, October 15, 2009

Are these two statements same?


int *ptr = "NULL";   // Here is a statement

int *ptr;            // Here is a set of two statements
*ptr = "NULL";


/* 
when
you print the first
it gives 0
and second if you print
it gives linking error
why so
*/

No comments:

Post a Comment