segmentation fault !!!

hey,
In the main part, I get the segmentation fault error while going to the next part of check_number function,
Last edited on
Please repost your code using code tags.
http://www.cplusplus.com/articles/jEywvCM9/
Also, the reason it is segfaulting is because you are dereferencing the arrays guess and secret_number in main(). You do not need to do that. Remove the dereferences and it will no longer segfault.
Topic archived. No new replies allowed.