Within a function I have declared an array:
int char_count_array[118] = {0};
Later on, I pass this array to a function and calculate the following:
int xx = sizeof(char_count_array);
int xy = sizeof(char_count_array)/sizeof(int);
However, the result I get is: xx = 4 xy = 1
I thought I would be getting: xx = 472(118 * 4) xy = 118 (472 / 4).
Would anyone know what I am doing wrong here?