1.

What notation should we use for denoting the breadth of an array?(a) sizeof(a[0])(b) sizeof(a)(c) sizeof(a[])(d) sizeof(a.0)The question was posed to me in an online interview.My doubt stems from The sizeof() Function in chapter Arduino Programming of Arduino

Answer»

Correct choice is (a) SIZEOF(a[0])

BEST explanation: When the first element of an array is invoked in the sizeof() function, if the array is a 2D array then it will give the number of elements PRESENT in the BREADTH of the matrix.



Discussion

No Comment Found

Related InterviewSolutions