C Programming Cheatsheet

A reference guide covering C programming syntax, data types, format specifiers, operators, and constructs.


C Programming Cheatsheet - cover page
Category
Other software
Document type
Other
Language
English
Pages
4
File format
PDF
File size
168 KB
Published
04 November, 2026
Updated
04 November, 2026
MD5 checksum
B279767C2D924F9E2C0486CF4DE20424

About this manual

This document serves as a comprehensive cheatsheet for the C programming language. It details string format specifiers, arithmetic and logical operators, and various data types including standard and fixed-point types.

The guide also covers programming constructs such as loops, conditionals, macros, and switch-case statements. Additionally, it lists function attributes, storage classes, and type qualifiers relevant to C development.

What's inside

  • String Format Specifiers
  • Arithmetic Operators
  • Logical Operators
  • Bitwise Operators
  • Data Types
  • Constructs
  • Macros
  • Storage Classes
  • Type Qualifiers
  • Function Attributes

Frequently asked questions

How do you save an integer to a variable using scanf?

You save an integer to a variable by using the format specifier %d and passing the address of the variable with an ampersand.

What is the purpose of the const qualifier for a variable?

The const qualifier indicates that the value of the variable does not change and is read-only.

What does the %F format specifier do for floating-point numbers?

The %F format specifier is used for float or double values, and it is the uppercase version of %f.

Download PDF (168 KB)

Also Manuals