#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[])
{
char* p;
if((p=(char*)malloc(0))==NULL)
{
puts("got a NULL pointer!\n");
}
else
{
//printf("%d\n",sizeof(p)/sizeof(char));
puts("got a valid pointer!\n");
}
return 0;
}