prog.c: In function 'main':
prog.c:38:24: warning: passing argument 1 of 'is_cmp_value' from incompatible pointer type [-Wincompatible-pointer-types]
is_cmp = is_cmp_value(&array1[0],&array2[0]);
^
prog.c:7:6: note: expected 'char *' but argument is of type 'int *'
bool is_cmp_value(char *ptr1, char *ptr2)
^
prog.c:38:35: warning: passing argument 2 of 'is_cmp_value' from incompatible pointer type [-Wincompatible-pointer-types]
is_cmp = is_cmp_value(&array1[0],&array2[0]);
^
prog.c:7:6: note: expected 'char *' but argument is of type 'int *'
bool is_cmp_value(char *ptr1, char *ptr2)
^
prog.c:39:2: error: 'sun_result' undeclared (first use in this function)
sun_result =give_me_val(&array1[0],SOME_VAL(array1));
^
prog.c:39:2: note: each undeclared identifier is reported only once for each function it appears in
prog.c:24:6: warning: unused variable 'sum_result' [-Wunused-variable]
int sum_result;
^
prog.c:23:7: warning: variable 'is_cmp' set but not used [-Wunused-but-set-variable]
bool is_cmp;
^