How does sizeof know the size of the operand array

0 votes
It could be a silly question, but how does the sizeof operator determine the size of an operand for an array when the number of array members is not sent in?

I am aware that it just returns the array's size in bytes rather than the whole number of items, but in order to do so, it still has to know when the array ends.

Just wondering how this works.
Aug 17, 2022 in C++ by Nicholas
• 7,760 points

edited Mar 4 49 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP