prog.c:3:1: warning: data definition has no type or storage class
i=20;
^
prog.c:3:1: warning: type defaults to ‘int’ in declaration of ‘i’ [-Wimplicit-int]
prog.c:3:1: error: redefinition of ‘i’
prog.c:2:12: note: previous definition of ‘i’ was here
static int i=10;
^
prog.c: In function ‘main’:
prog.c:6:1: warning: implicit declaration of function ‘Printed’ [-Wimplicit-function-declaration]
Printed("%d",i);
^~~~~~~
At top level:
prog.c:2:12: warning: ‘i’ defined but not used [-Wunused-variable]
static int i=10;
^