What is the output of this program? [code] #include<stdio.h> #include<stdlib.h> struct st{ int a; char b; };

What is the output of this program?
Code:
   #include<stdio.h>
   #include<stdlib.h>
   struct st{
       int a;
       char b;
   };
   int main()
   {
       struct st *st_ptr;
       st_ptr = malloc(sizeof(struct st));
       printf("%d\n",sizeof(struct st));
       return 0;
   }
A. 8
B. 5
C. 0
D. none of the mentioned
 

Tìm kiếm

Back
Top