Sometimes when programming, we define or declare functions, definitions, variables, macros includes and data structures. but never use those after that.

  1. Do those unused resources automatically get remove by the compiler (modern compilers capable of optimizing)?
  2. Is there a way to recognize those?
Edit
Report