does the following string declaration hold 25 or 24 characters
char a[25];
cheers
Dave
does the following string declaration hold 25 or 24 characters
char a[25];
cheers
Dave
The array holds 25 characters. Since a C-style string must be null terminated, it can hold only 24 non-null characters.
7. It is easier to write an incorrect program than understand a correct one.
40. There are two ways to write error-free programs; only the third one works.*