TCS Technical Questions With Solutions 6

while declaring parameters for main, the second parameter argv should be declared as

a) char argv[]
b) char argv
c) char ** argv[]
d) char * argv[]

A memory leak happens when

a) a program allocates memory in heap but forgets to be allocate it
b) when an un-assigned pointer is used is freed using free function
c) when realloc() is called on a pointer that is not allocated
d) A program allocates memory in stack