Skip to content
bbminfo – Learn from Scratch
Subjects Code examples Library reference
Computer Programming Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy

Tutorial menu

Subjects

Computer Programming MathsPlanned ChemistryPlanned

Lesson contents

Programming resources

All languages Code examples Library reference

Programming languages

Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy
Tutorials/Computer Programming/C/Library/Errors and exceptions

C errors and exceptions

Handle invalid entries, missing records, and interrupted work. Follow each failure from the input that triggers it to a response the user can act on.

fopen and ENOENTInteger division guardArray bounds guard

Browse by topic

  • Input and validation3
  • State and collections2
  • Files and streams2

Input and validation

  • NULL pointer guardPrint a label when the phone number is missing
  • strlen length checkRead the depot prefix on a damaged label
  • strtol and errnoReject a mistyped order quantity

State and collections

  • Array bounds guardFind a seat after the coach changes
  • Integer division guardSplit an equipment fee across a class

Files and streams

  • fopen and ENOENTOpen the first receipt of the day
  • fread and feofRead a stock count from a short record

All C library sections

C tutorials

Environment setup› Library reference› Data structures› Code examples›
Advertisements
bbminfo – Learn from Scratch
© 2026 bbminfoArtwork creditsPrivacy policy