The size of an array is known at compile time. Usually a macro like the following is used
#define NELEM(a) (sizeof(a) / sizeof(a[0]))
Try, for instance
#include <stdio.h>
#define NELEM(a) (sizeof(a) / sizeof(a[0]))
int main()
{
int n;
char* element[] = { "Hydrogen" ,"Helium", "Lithium", "Beryllium", "Boron", "Carbon", "Nitrogen", "Oxygen", "Fluorine", "Neon" };
n = NELEM(element);
printf("%d\n",n);
return 0;
}