Discussion :: Strings
-
Is there any difference between the two statements?
char *ch = "FresherGATE";
char ch[] = "FresherGATE";
Answer : Option A
Explanation :
In first statement the character pointer ch stores the address of the string "IndiaBIX".
The second statement specifies the space for 7 characters be allocated and that the name of location is ch.
Be The First To Comment