int main()
{
int *p;
p = (int*)malloc(si zeof(int));
if(p == NULL)
{
Error("Could not allocate the memory\n");
Error("Quitting ....\n");
exit(1);
}
Is it correct to check in gcc , ( compare with NULL )
{
int *p;
p = (int*)malloc(si zeof(int));
if(p == NULL)
{
Error("Could not allocate the memory\n");
Error("Quitting ....\n");
exit(1);
}
Is it correct to check in gcc , ( compare with NULL )
Comment