I am getting an implicit declaration warning of the malloc function. What is wrong here.
Please reply.Code:void StackInit(stackST *stackP) { stackElement *newContents; /* Allocate a new array to hold the contents. */ newContents = (stackElement *)malloc(sizeof(stackElement) * 10); stackP->contents = newContents; stackP->lineST = 0; stackP->top = -1; /* I.e., empty */ }