A string that is a formal parameter can be declared
Answer: C
Correct answer: Both A and B
A string parameter may be written either as char s[] or as char *s, and the two are exactly equivalent in a parameter list: an array argument decays to a pointer to its first element, so the function receives an address either way. Outside a parameter list the two forms are quite different.
Please log in or register to report this question.