Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
Why segfault and no NULL match in for loop?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Default User, post: 2873685"] Richard Tobin wrote: True, but only because he has global data. As soon as he moves that array into main() or another function and passes it into search() as he should, he'll be right back where he started. He could add a size parameter, of course, or use a sentinel value like he tried and failed to do. Brian [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
Why segfault and no NULL match in for loop?
Top