You are previewing C Quick Syntax Reference.
O'Reilly logo
C Quick Syntax Reference

Book Description

The C Quick Syntax Reference is a condensed code and syntax reference to the popular C programming language, which has enjoyed some resurgence of late. C's efficiency makes it a popular choice in a wide variety of applications and operating systems with special applicability to, for instance, wearables, game programming, system level programming, embedded device/firmware programming and in Arduino and related electronics hobbies. This book presents the essential C syntax in a well-organized format that can be used as a quick and handy reference.

You won’t find any technical jargon, bloated samples, drawn out history lessons, or witty stories in this book. What you will find is a language reference that is concise, to the point and highly accessible. The book is packed with useful information and is a must-have for any C programmer.

In the C Quick Syntax Reference, you will find:

  • A concise reference to the C language syntax.
  • Short, simple, and focused code examples.
  • A well laid out table of contents and a comprehensive index allowing easy review.
  • Table of Contents

    1. Cover
    2. Title
    3. Copyright
    4. Contents at a Glance
    5. Contents
    6. About the Author
    7. About the Technical Reviewer
    8. Introduction
    9. Chapter 1: Hello World
      1. Creating a Project
      2. Adding a Source File
      3. Hello World
      4. IntelliSense
    10. Chapter 2: Compile and Run
      1. Visual Studio Compilation
      2. Console Compilation
      3. Comments
    11. Chapter 3: Variables
      1. Data Types
      2. Declaring Variables
      3. Assigning Variables
      4. Printing Variables
      5. Integer Types
      6. Signed and Unsigned
      7. Sized Integers
      8. Floating-Point Types
      9. Literal Suffixes
      10. Char Type
      11. Bool Type
      12. Variable Scope
    12. Chapter 4: Operators
      1. Arithmetic Operators
      2. Assignment Operators
      3. Combined Assignment Operators
      4. Increment and Decrement Operators
      5. Comparison Operators
      6. Logical Operators
      7. Bitwise Operators
      8. Operator Precedence
    13. Chapter 5: Pointers
      1. Creating Pointers
      2. Dereferencing Pointers
      3. Pointing to a Pointer
      4. Null Pointer
    14. Chapter 6: Arrays
      1. Array Declaration and Allocation
      2. Array Assignment
      3. Multi-Dimensional Arrays
      4. Arrays and Pointers
      5. Array Size
    15. Chapter 7: String
      1. Escape Characters
      2. String Functions
    16. Chapter 8: Conditionals
      1. If Statement
      2. Switch Statement
      3. Ternary Operator
    17. Chapter 9: Loops
      1. While Loop
      2. Do-While Loop
      3. For Loop
      4. Break and Continue
      5. Goto Statement
    18. Chapter 10: Functions
      1. Defining Functions
      2. Calling Functions
      3. Function Parameters
      4. Void Parameter
      5. Return Statement
      6. Forward Declaration
      7. Variable Parameter Lists
      8. Pass by Value
      9. Pass by Address
      10. Return by Value or Address
      11. Inline Functions
    19. Chapter 11: Typedef
    20. Chapter 12: Enum
      1. Enum Example
      2. Enum Constant Values
      3. Enum Conversions
      4. Enum Scope
    21. Chapter 13: Struct
      1. Struct Objects
      2. Member Access
      3. Struct Pointers
      4. Bit Fields
    22. Chapter 14: Union
    23. Chapter 15: Type Conversions
      1. Implicit Conversions
      2. Explicit Conversions
    24. Chapter 16: Storage Classes
      1. Auto
      2. Register
      3. External
      4. Static
      5. Volatile
    25. Chapter 17: Constants
      1. Constant Variables
      2. Constant Pointers
      3. Constant Parameters
      4. Constant Guideline
    26. Chapter 18: Preprocessor
      1. Including Source Files
      2. Define
      3. Undefine
      4. Predefined Macros
      5. Macro Functions
      6. Conditional Compilation
      7. Compile if Defined
      8. Error and Warning
      9. Line
      10. Pragma
    27. Chapter 19: Memory Management
      1. Malloc
      2. Free
      3. Realloc
      4. Void Pointer
    28. Chapter 20: Command Line Arguments
    29. Chapter 21: Headers
      1. Why to Use Headers
      2. What to Include in Headers
      3. Include Guards
    30. Index