Q: I can't even get a simple fopen call to work! What's wrong with this call?
FILE *fp = fopen(filename, 'r');
A: fopen's mode argument must be a string, like "r", not a character like 'r'. See also question 8.1.
Hosted by