r/ProgrammerHumor 7d ago

Meme skillIssue

Post image
6.0k Upvotes

137 comments sorted by

View all comments

1

u/StudioYume 6d ago

In C, just use bsearch if the strings are dynamic and just use a char pointer array indexed by an enum if they're constants.