notes

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 8155bbd4d6cdf2b3f7bde2d8c06f86df892fc532
parent a30a2f999e48817cc3849196521a6d420a705058
Author: Andrew Laack <andrew@laack.co>
Date:   Fri, 17 Oct 2025 15:32:18 -0500

Took some notes on c

Diffstat:
Mdocs/C.md | 1+
Adocs/printf.md | 16++++++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/docs/C.md b/docs/C.md @@ -7,6 +7,7 @@ This index tracks c related concepts. ### Libraries - [stdio](stdio.md) + - [printf](printf.md) ### Other diff --git a/docs/printf.md b/docs/printf.md @@ -0,0 +1,16 @@ +# printf + +**Source:** C Programming Book + +**Chapter:** 1.1 + +**Definition:** printf is a general purpose standard output function for printing text and variables. + +## Variable Insertion + +The following is a non-exhaustive list of formatting options for printf to print out different data types: + +- %d - Integer +- %4d - Right aligned integer with a width of 4 +- %f - Float +- %6.1f - Float with six characters width one of which is on the right of the decimal.