Im not sure why this code prints out "C". I did learn about strlen but its different here and im confused. Any help is appreciated and i want an explanation on why it outputs C so i know what is going on. Thanks!
strlen(s) is equal to 5.
5 divided by 2 is 2.5, but since it's integer division it is rounded down to 2.
c becomes equal to s[2];
and s[2] is = C (you'll know about this if you know how arrays work)