prog.c: In function ‘sortArray’:
prog.c:6:19: warning: implicit declaration of function ‘malloc’ [-Wimplicit-function-declaration]
int *p=(int *)malloc(numsSize * sizeof(int));
^~~~~~
prog.c:6:19: warning: incompatible implicit declaration of built-in function ‘malloc’
prog.c:6:19: note: include ‘<stdlib.h>’ or provide a declaration of ‘malloc’
prog.c:7:14: error: ‘c’ undeclared (first use in this function)
int flag;c
^
prog.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
prog.c:8:5: error: expected ‘;’ before ‘for’
for(int i=0;i<numsSize-1;i++)
^~~
prog.c:7:9: warning: unused variable ‘flag’ [-Wunused-variable]
int flag;c
^~~~