Linux MCQ Number 01152

Linux MCQ Set 1 1. This program will allocate the memory of ___ bytes for pointer “ptr”. #include<stdio.h> #include<stdlib.h>  int main() { int *ptr; ptr = realloc(0,sizeof(int)*10); return 0; } a) 0 b) 10 c) 40 d) none of the mentioned AnswerAnswer: c [Reason:] If the first argument of realloc() is NULL, then it behaves…


This content is for paid premium members only.
You can view complete answer after activation your membership.


Need only one answers. Simply buy single day pass and email. We will send answers for this question.
Login Buy membership