22. How Can I Search for Data?

Step Through Arrays

image

You bought this book to learn C as painlessly as possible—and that’s what has been happening. (You knew that something was happening, right?) Nevertheless, you won’t become an ace programmer if you aren’t exposed a bit to searching and sorting values. Complete books have been written on searching and sorting techniques, and the next two chapters present only the simplest techniques. Be forewarned, however, that before you’re done, this and the next chapter may raise more questions than they answer. If you enjoy searching and sorting, look ...

Get Absolute Beginner’s Guide to C, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.