#include <stdio.h> int main(void) { // your code goes here int * p; *p= &2; return 0; }
Standard input is empty
prog.c: In function ‘main’: prog.c:6:5: error: lvalue required as unary ‘&’ operand *p= &2; ^ prog.c:7:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘int *’ [-Wformat=] printf("%d",p); ^
Standard output is empty