Question: Comment on the output of following code:1. #include <stdio.h>
2. main()
3. {
4. char *p = 0;
5. *p = ‘a’;
6. printf(“value in pointer p is %c\n”, *p);
7. }
Answer:
MCQ: Comment on the output of following code:1. #include <stdio.h>
2. main()
3. {
4. char *p = 0;
5. *p = ‘a’;
6. printf(“value in pointer p is %c\n”, *p);
7. }