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
Computer Science,
6 months ago
Math,
6 months ago
India Languages,
11 months ago
Environmental Sciences,
11 months ago
English,
1 year ago
Science,
1 year ago
Math,
1 year ago