Tricky MCQ set number 00267

1. What is the output of this program? #include<stdio.h>  int main() { int *ptr; ptr = (int *)calloc(1,sizeof(int)); *ptr = 10; printf(”%dn”,*ptr); return 0; } a) 0 b) -1 c) 10 d) none of the mentioned AnswerAnswer: d [Reason:] This program will give an error because calloc() requires the header file stdlib.h. Output: [ aidlo]#…


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