Character array vs string

to use char array as string we should include cstring na sir has not incuded that but then also code is working why ?
I am confused btw cstring vs cpp string vs char array