How can i access s[7] in s?
s[7]
s
I didn\'t observe any difference between strncpy and memcpy. If I want to print the o
strncpy
memcpy
To make "qwertyA" you need to set s[6] = 'A' and s[7]='\0'
s[6] = 'A'
s[7]='\0'
Strings are indexed from 0, so s[0] == 'q', and they need to be null terminated.
s[0] == 'q'