Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

segmentation-fault

  1. Chillzy

    Why does this cause a seg fault?

    According to my IDE (CodeBlocks), this bit of code causes a seg fault. I'm trying to fix this but I don't even know why this causes a seg fault so an explanation would be helpful. ``` unsigned char* pixel_offset = data + (j + width * i) * byte_per_pixel; unsigned char y...
Back
Top Bottom