MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the program?_x000D_ #include_x000D_ _x000D_ int main()_x000D_ {_x000D_ void fun(char*);_x000D_ char a[100];_x000D_ a[0] = 'A'; a[1] = 'B';_x000D_ a[2] = 'C'; a[3] = 'D';_x000D_ fun(&a[0]);_x000D_ return 0;_x000D_ }_x000D_ void fun(char *a)_x000D_ {_x000D_ a++;_x000D_ printf("%c", *a);_x000D_ a++;_x000D_ printf("%c", *a);_x000D_ } |
| A. | AB |
| B. | BC |
| C. | CD |
| D. | No output |
| Answer» C. CD | |