Which of the following statements are correct regarding the ANSI C declarations below for an embedded system?
const char *p="Samuel";
char a[] = "Samuel";
A. In both cases the'\0’will be present at the end of the string "Samuel".
B. The declarations are functionally identical, except for the name of the variable
C. The pointer p can be modified to point to another string,whereas only individual characters within the array a can be changed.
D. The first statement is incorrect because’\0’is not given in the string, whereas the second is incorrect because the size of array is not mentioned.
E. p is a non-const pointer that points to a const string, whereas a acts as a const pointer that points to a non-const string.
--
FROM 1.147.112.*