-
In the following code snippet, character pointer str holds a reference to the string ___________.
char *s = "interviewmania.com\0" "c programming";
-
- interviewmania.comc programming
- interviewmania.com
- c programming\0c programming
- c programming
- None of these
Correct Option: C
‘\0’ is accepted as a char in the string. Even though strlen will give length of string “Sanfoundry.com”, in memory s is pointing to entire string including training classes.