MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your C Questions and Answers knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which among the given function causes abnormal program termination ? |
| A. | exit() |
| B. | abort() |
| C. | atexit() |
| D. | getenv() |
| Answer» C. atexit() | |
| 2. |
void free(void *ptr) deallocates the memory previously allocated by a call to _______ ________ or _________ |
| A. | malloc,getenv,abort |
| B. | calloc,malloc,exit |
| C. | calloc,malloc,realloc |
| D. | exit,getenv,abort |
| Answer» D. exit,getenv,abort | |