MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code?#include <stdio.h> void fun(int *ptr1, int *ptr2) { int temp = *ptr1; *ptr1 = *ptr2; *ptr2 = temp; } void main() { int m = 10, n = 12; fun(&m, &n); printf("%d %d n", m, n); } |
| A. | Compilation Error |
| B. | 10 12 |
| C. | 12 10 |
| D. | Garbage value |
| E. | None of these |
| Answer» D. Garbage value | |