9 lines
194 B
C
9 lines
194 B
C
|
#include <stdio.h>
|
||
|
|
||
|
int main() {
|
||
|
int *p = NULL; // NULL = (void *)0 - Ponteiro nulo
|
||
|
*p = 42; // ERRO: tentativa de escrever em um ponteiro nulo
|
||
|
printf("%d\n", *p);
|
||
|
return 0;
|
||
|
}
|