Chapter 26

Ten Common Boo-Boos

IN THIS CHAPTER

check Conditional foul-ups

check == v. =

check Dangerous loop semicolons

check Commas in for loops

check Missing break in a switch structure

check Missing parentheses and curly brackets

check Pay heed to that warning

check Endless loops

check scanf() blunders

check Streaming input restrictions

The programming adventure has its pitfalls. Many of them are common; the same mistakes, over and over. Even after decades of coding, I still find myself doing stupid, silly things. Most often they’re done in ...

Get C Programming For Dummies, 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.