Top

Discussion

Which statment is true about the given code ?

#include 
#include  
int main()
{
    int *a[5];
    a = (int*) malloc(sizeof(int)*5);
    free(a);
    return 0;
}

 

  • A.Error: unable to allocate memory
  • B.Error: We cannot store address of allocated memory in a
  • C.Error: unable to free memory
  • D.No error

Answer: B

None

No comment is present. Be the first to comment.
Loading…

Post your comment