MCQOPTIONS
Saved Bookmarks
| 1. |
Trace the output of the code #include void foo(int*); int main() { int i = 10; foo((&i)++); } void foo(int *p) { printf(""%d\n"", *p); } |
| A. | 10 |
| B. | Some garbage value |
| C. | Segmentation fault/Code crash |
| D. | Compile time error |
| Answer» D. Compile time error | |