Cannot increment the value of a dereferenced pointer
问题 I seem to have a problem with a simple program that is supposed to count various character types in a file. It always prints zeroes even though the file is not empty at all. I think it has something to do with pointers, could be wrong. I would also like to know if initializing variables is necessary in this case? // fun.h void count_char(FILE *f, unsigned *newl, unsigned *let, unsigned *num, unsigned *spec_char); // main.c #include <stdio.h> #include "fun.h" int main() { unsigned newline = 0,