MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> int main() { int s1 = 5; //, s2 = 9; const int *ptr = &s1; *ptr++; printf("%d n", *ptr); } |
| A. | 9 |
| B. | 5 |
| C. | Garbage value |
| D. | Compilation Error |
| E. | Increment of read-only location compile error |
| Answer» D. Compilation Error | |