MCQOPTIONS
Saved Bookmarks
This section includes 5 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. |
Which of the following operation is illegal in structures? |
| A. | Typecasting of structure |
| B. | Pointer to a variable of same structure |
| C. | Dynamic allocation of memory for structure |
| D. | All of the mentioned |
| Answer» D. All of the mentioned | |
| 2. |
Which of the following is not possible under any scenario? |
| A. | s1 = &s2; |
| B. | s1 = s2; |
| C. | (*s1).number = 10; |
| D. | None of the mentioned |
| Answer» C. (*s1).number = 10; | |
| 3. |
10 (Garbage Value) |
| A. | 0 10 |
| B. | 10 0 |
| C. | (Garbage Value) 10 |
| Answer» B. 10 0 | |
| 4. |
Which of the following return-type cannot be used for a function in C? |
| A. | char * |
| B. | struct |
| C. | void |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 5. |
newton alan alan |
| A. | alan newton alan |
| B. | alan alan newton |
| C. | compile time error |
| Answer» B. alan alan newton | |