I printed the size of this global variable and the output was 20. I'm trying to understand how it's not just 15 since there's 5 elements, each one is size of 3 (including the \0 at the end of each one).
#include <stdio.h>
char* arrChar[5] = { "hh","jj","kk","zz","xx" };
int main()
{
printf("size = %d\n", sizeof(arrChar));
}
I don't know if there's a connection but if we combined all the numbers here it would be 20, still I don't understand how the number of elements (5) added to the size of the elements in the array (15) is making any sense.
