length of string array in cpp code example
Example 1: length of array in cpp
int size = sizeof(arr)/sizeof(arr[0])
Example 2: array length in c++
int a[20];
int length;
length = sizeof(a) / sizeof(int);
int size = sizeof(arr)/sizeof(arr[0])
int a[20];
int length;
length = sizeof(a) / sizeof(int);