Skip to main content

The C Preprocessor

  • Chapter
A Book on C

Part of the book series: Macmillan Computer Science Series ((COMPSS))

  • 654 Accesses

Abstract

We have already introduced the C preprocessor directives #include and #define for file inclusion and symbol definition capabilities. In this chapter, we expand the discussion to include the #undef directive, and the use of the conditional compilation directives #if, #ifdef, #ifndef, #else and #endif. In addition, parameters for the #define directive are introduced to yield a more powerful macro facility.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Authors

Copyright information

© 1988 R. E. Berry, B. A. E. Meekings and M. D. Soren

About this chapter

Cite this chapter

Berry, R.E., Meekings, B.A.E., Soren, M.D. (1988). The C Preprocessor. In: A Book on C. Macmillan Computer Science Series. Palgrave Macmillan, London. https://doi.org/10.1007/978-1-349-10233-4_11

Download citation

  • DOI: https://doi.org/10.1007/978-1-349-10233-4_11

  • Publisher Name: Palgrave Macmillan, London

  • Print ISBN: 978-0-333-46529-5

  • Online ISBN: 978-1-349-10233-4

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics