Hot answers tagged

2 votes

null pointer passed as argument 1

You forgot to include the relevant code. You probably call your check function with a NULL pointer. This might happen for example if you use argv[1] before checking whether argc is greater than 1 (or ...
user avatar
  • 20.7k
1 vote

cs50 pset4 blur function index out of bounds issue

Some of your conditions need to change. There's no 'between' syntax like in maths, so (0 < j < width-1) won't work in c. You need to split this into something like (j > 0 && j < ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible