MCQOPTIONS
Saved Bookmarks
| 1. |
What is the output of this program? #include void main() { int *ptr = (int *)malloc(sizeof(int)); *ptr = 10; free(ptr); p = 5; printf("%d", ptr); } |
| A. | Compilation error |
| B. | 5 |
| C. | Garbage value |
| Answer» C. Garbage value | |