incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'int *' [-Wincompatible-pointer-types]

Advertisements I’m making a movie rating management program. I declared size_t as a data type to count, but I get this error. What’s wrong with you? int main(){ struct movie movie_list[LMAX]; size_t n_items = 0; read_file(movie_list, &n_items); void read_file(struct movie movie_list[], int *ptr_n_items){ for (int n = 0; n < num; ++n){ if (fscanf(file, "%[^\n]%*c",… Read More incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'int *' [-Wincompatible-pointer-types]