prog.c: In function ‘main’:
prog.c:9:5: warning: passing argument 1 of ‘display’ from incompatible pointer type [enabled by default]
display(marks);
^
prog.c:4:6: note: expected ‘int **’ but argument is of type ‘int *’
void display(int **);
^
prog.c: At top level:
prog.c:12:6: error: conflicting types for ‘display’
void display(int *x)
^
prog.c:4:6: note: previous declaration of ‘display’ was here
void display(int **);
^
prog.c: In function ‘display’:
prog.c:16:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=]
printf("\n%d",x);
^