Comment on the output of following code:
#include <stdio.h> main() { char *p = 0; *p = 'a'; printf("value in pointer p is %c\n", *p); }
Answers
Answered by
0
Code
Input
#include <stdio.h>
main()
{
char *p = 0;
*p = 'a';
printf("value in pointer p is %c\n", *p);
}
Output
$ cc pgm.c
$ a.out
Segmentation fault (core dumped)
Answered by
0
sorry friend I don't know this answer
so sorry
Similar questions