prog.c: In function ‘main’:
prog.c:9:32: error: expected ‘)’ before ‘num’
printf("Num is %d, x is %f\n" num, x);
^~~
prog.c:9:18: warning: format ‘%d’ expects a matching ‘int’ argument [-Wformat=]
printf("Num is %d, x is %f\n" num, x);
^
prog.c:9:27: warning: format ‘%f’ expects a matching ‘double’ argument [-Wformat=]
printf("Num is %d, x is %f\n" num, x);
^
prog.c:6:7: warning: variable ‘x’ set but not used [-Wunused-but-set-variable]
float x;
^
prog.c:5:5: warning: unused variable ‘num’ [-Wunused-variable]
int num = 23;
^~~