how to take size of array from user in c code example Example: size of an array c int a[20]; int length; length = sizeof(a) / sizeof(int);