Friday, April 24, 2015


This program prints "Empty String".



int a[]="\0";
if (printf("%s", a))
printf("Non Empty");
else
printf("Empty");


 


This is not an Empty String as size of the sting is 2 (Two).

No comments:

Post a Comment