MCQOPTIONS
Saved Bookmarks
This section includes 1 Mcqs, each offering curated multiple-choice questions to sharpen your C Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
What type of initialization is needed for the segment ptr[3] = 3 ; to work? |
| A. | char *ptr = Hello! ; |
| B. | char ptr[] = Hello! ; |
| C. | both char *ptr = Hello! ; and char ptr[] = Hello! ; |
| D. | none of the mentioned |
| Answer» C. both char *ptr = Hello! ; and char ptr[] = Hello! ; | |