how to give a const length to int array in c code example Example: get length of array in c int a[17]; size_t n = sizeof(a)/sizeof(a[0]);