This is what the question is stating:
Write a program that inputs a line of text using function fgets() into a char array s, then it outputs the line converted to uppercase.
fgets to be used, am i correct if I understand that the user doesn't have to input anything but the text should be get from the file only?
Keeping with the same function, I found that this is how the function is used.
fgets ( char * str, int num, FILE * stream ); Am I correct if I understand that:
char *str => the array of characters where the data from the text file is to be stored
int num => how big the array is
FILE * stream => the file where data is to be get from.
Edited by terence193: n/a