Wednesday, May 18, 2011

Comparing NULL in C example


You can use the below code for comparing String with NULL in C

char * ff;
if (  ff != NULL ) );
{
printf("value isnot null");
}
else
{
printf ("value is null");
}

No comments:

Post a Comment