Q: Many languages internally treat strings as character arrays, but somehow conceal this fact from the programmer. Character arrays or strings are used by programming languages to manipulate text such as words and sentences. Explain this statement with the help of a program.
character arrays are more efficient than string for some reasons:
1: To refer the whole string single pointer is enough and that is efficient with memory
2: You don't need to declare the size of string bedorehand.
char* foo = "Hakuna Matata"
Comments
Leave a comment