When the sizeof() function is invoked on an array. What information does it return?

Nam Phong

New member
When the sizeof() function is invoked on an array. What information does it return?
A. Number of elements in the array
B. The largest element in the array
C. The total sum of the ASCII values of the elements in the array
D. The largest ASCII value of any element in the array
 
Answer: A
Explanation: The primary use of the sizeof() function is to return the length or size of an element that is given to it. So, if this element is an array which is a collection of elements, it will give the number of elements present inside the array.
 

Tìm kiếm

Back
Top