1. Will the program compile successfully?
A. Yes
B. No
Advertisement
2. For the following statements will arr[3] and ptr[3] fetch the same character?
char arr[] = “GkFeed”;
char *ptr = “GkFeed”;
A. Yes
B. No
Advertisement
3. Is there any difference between the two statements?
char *ch = “GkFeed”;
char ch[] = “GkFeed”;
A. Yes
B. No
Advertisement
< PREVIOUS POSTStrings - Point Out Correct Statements
NEXT POST >Input / Output - General Questions