Vidyalelo
C Programming · Q16

Memory Allocation

Programming · C Programming · question 16

Q16

What does the 'sizeof' operator in C return for a dynamically allocated array?

A.
Size of a single element
Answer
B.
Size of the entire array
C.
Size of the pointer
D.
Size of the first element

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board