What are the advantages and disadvantages of searching in C programming?

1 answer

Answer

1290183

2026-07-21 14:45

+ Follow

If the data is sorted and every element is directly accessible, then you can perform binary search (see built-in function bsearch), otherwise you have to do linear search (which is slower).

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.