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