There is a way to find the size of the array using the sizeof operator:
size_t size_a = (sizeof a / sizeof *a);
The division is required because the sizeof operator returns the number of bytes. So dividing by the size of an individual element will give you the number of elements in the array
There is a way to find the size of the array using the sizeof operator:
That only works when the type of the identifier is an array (or a reference to an array.) Here, the type of the variable with identifier a is a pointer, not an array.