A char[] is the same as a char* so you don't have to pass the address of the variable, just the variable itself.
sizeof() expression in call of FGETS function is incorrect. You should pass line buffer size to this function explicitly. The size cannot be extracted from the parameter type
warnings are unimportant here, the code is completely wrong.
Обсуждают сегодня