However, it is equally true if problem[0] were a pointer to a regular char; you do need the address of operator when passing a pointer to a scanf function. You only need the address of if you are...
Type: Posts; User: MK27
However, it is equally true if problem[0] were a pointer to a regular char; you do need the address of operator when passing a pointer to a scanf function. You only need the address of if you are...
This will work:
fscanf(file_ID, "%s %s %s\n", header, problem[0], problem[1]);
no &; problem[0] is a pointer (you are used to passing the address of an int variable)