MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output of the following C code? #include <stdio.h> void count(char *ptr) { ptr++; ptr[3] = 'S'; } void main() { char str[] = "AJIT"; count(str); printf("%c n", *str); } |
| A. | A |
| B. | AJIT |
| C. | Compilation Error |
| D. | Garbage value |
| E. | None of these |
| Answer» B. AJIT | |