Character array

what is meant by ?( ‘hello’\0) or (‘hello’\n)

hi @Aarti.com \0 this is the null character. When you use a character array to store “strings” we need a null character to signify the end of the string. You dont need to add this if you are using string datatype
\n is the newline character. Whenever a newline character is encountered, the output shifts to next line. It is like printing “enter”.
for eg if we print cout << "Hello\nWorld" the output will be

Hello
World

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.