SouthernAtHeart:
lloyddean:
Given the example who ever wrote that is mistaken.buttonPin[7] = {13,12,11,10,5,9,6};For all array of a single dimension the size is calculated as (sizeof(array)/sizeof(array[0]))
No trailing '\0' required.
Huh??? I'm lost. Are you speaking about my example? I thought it was ok, as nick mentioned.
Yours is fine. You would need an additional slot if you were creating a string to be used in such functions like strcmp, strcpy, or other functions that accept a pointer to a character where null termination is expected.