True memory size of arr[] | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

True memory size of arr[]

the size of an array is.. <sizeof(elem) * num_elems + arr_name_ptr(8byte)> ? so bool[3] arr --> sizeof(bool)*3 + 8 --> 11 bytes?

29th Jul 2021, 11:24 AM
Kiwwi#
Kiwwi# - avatar
2 Réponses
+ 1
Kiwwi# Please make your question clear.
29th Jul 2021, 12:16 PM
Calvin Thomas
Calvin Thomas - avatar
+ 1
29th Jul 2021, 12:21 PM
Kiwwi#
Kiwwi# - avatar