I cant even get a simple fopen call to work

Q

I can't even get a simple fopen call to work! What's wrong with this call?

FILE *fp = fopen(filename, 'r');

✍: Guest

A
fopen's mode argument must be a string, like "r", not a character like 'r'.

2015-10-09, 798👍, 0💬