How can I get the size of an array in C?

1 answer

Answer

1223012

2026-03-05 16:50

+ Follow

To get the size of an array in C, you can use the sizeof() operator. This operator returns the number of bytes occupied by the array, so to get the number of elements in the array, you can divide the total size by the size of one element.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.