Use of strlen(a) in palindromic string

why here sir uses strlen(a)-1 but not strlen(a) as strlen(a) gives the length of the string and points at the last index??

hi rahul,
sir used strlen(a)-1 because indexing of string is also from 0.
e.g.
abcba
01234
This will be the indexing of the string.
Please let me know if there is any other doubt.

ok so strlen(a) gives us the index of null character in char a[] ??

hi @rahulkumarraj220,
Yes it gives index of null char.