Search:
Forum
General C++ Programming
segmentation fault !!!
segmentation fault !!!
May 16, 2020 at 5:17pm UTC
turkeyheroc
(3)
hey,
In the main part, I get the segmentation fault error while going to the next part of check_number function,
Last edited on
May 17, 2020 at 12:00pm UTC
May 16, 2020 at 6:18pm UTC
TheToaster
(628)
Please repost your code using code tags.
http://www.cplusplus.com/articles/jEywvCM9/
May 16, 2020 at 6:25pm UTC
TheToaster
(628)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs