Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
CS50 Stack Exchange is a question and answer site for students of Harvard University's CS50. It only takes a minute to sign up.
My program is done. Thank You.
EDIT: (thanks Kareem for the cleanup of the OP)
Your initBall() function returns NULL.
You attempt to move the ball like this:
move(ball, velocity, 0);
so what would you say you're passing to the move function?