prog.c: In function ‘main’:
prog.c:5:24: error: initialization of ‘int *’ from ‘int’ makes pointer from integer without a cast [-Werror=int-conversion]
int *inteiro_ptr = 4;
^
prog.c:7:49: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Werror=format=]
printf("Endereco da variariavel 'inteiro': %d\n", &inteiro);
~^ ~~~~~~~~
%ls
prog.c:8:58: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Werror=format=]
printf("Valor armazenado no ponteiro 'inteiro_ptr': %d\n", inteiro_ptr);
~^ ~~~~~~~~~~~
%ls
prog.c:9:61: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int **’ [-Werror=format=]
printf("Endereco armazenado no ponteiro 'inteiro_ptr': %d\n\n", &inteiro_ptr);
~^ ~~~~~~~~~~~~
prog.c:11:13: error: assignment to ‘int’ from ‘void *’ makes integer from pointer without a cast [-Werror=int-conversion]
inteiro = NULL;
^
prog.c:14:61: error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Werror=format=]
printf("Endereco armazenado no ponteiro 'inteiro_ptr': %d\n", inteiro_ptr);
~^ ~~~~~~~~~~~
%ls
cc1: all warnings being treated as errors