Which of the following are null-terminated string?
char *str1 = \"This is a string.\"; char *str2 = \"This is a string.\\0\"; char str3[] = \"This is a strin
Don't use char*s="hi" in case you want to do something with the string like modifying it or even if you want to concatenate something to it because here stringhiis in read only section of the memory and your program can crash
char*s="hi"
hi