how to get the size of a character array in c code example
Example 1: get length of array in c
int a[17];
size_t n = sizeof(a)/sizeof(a[0]);
Example 2: how to get the index of an array in javascript
search = (arr, item) => { return arr.indexOf(item); }
Example 3: how to find the size of a character array in c++
Instead of sizeof() for finding the length of strings or character
arrays, just use strlen(string_name) with the header file
#include <cstring>
it's easier.