Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

cs50 pset 5 resize. my code: http://pastebin.com/EB80Q7St My output is getting corrupt after the first line and I can't figure out why...

OpenStudy (llib_xoc):

This bit is a little strange: if (argv == NULL){ printf("woops... try that again...\n"); return 1; } An empty argv array is not represented as a NULL pointer, it's represented by a NULL in the first array entry. If you're testing for an empty list of command-line arguments, I'd do this: if (argv[0] == NULL) { ... } Does that address your question?

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!