Discussion
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.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development