From 4f5b950e2fe67c3fe80526bf3cc8d8d245ee04ec Mon Sep 17 00:00:00 2001 From: zleyyij <75810274+zleyyij@users.noreply.github.com> Date: Wed, 4 Sep 2024 15:18:36 -0600 Subject: [PATCH] vault backup: 2024-09-04 15:18:36 --- education/software development/ECE1400/C.md | 8 +++++++- education/software development/ECE1400/Types.md | 0 2 files changed, 7 insertions(+), 1 deletion(-) delete mode 100644 education/software development/ECE1400/Types.md diff --git a/education/software development/ECE1400/C.md b/education/software development/ECE1400/C.md index 4134377..3c8f51f 100644 --- a/education/software development/ECE1400/C.md +++ b/education/software development/ECE1400/C.md @@ -5,7 +5,6 @@ Commands for the preprocessor are called directives. Directives begin with a pou Example: ```c -// #include ``` 2. Compiling. A compiler translates then translates the program into machine instructions. @@ -25,3 +24,10 @@ An integer is a way to store a whole number. In C, integers are signed by defaul A float is a decimal value. Slower arithmetic and inexact values are both drawbacks of using floats. ## Variables A variable must be declared before it is assigned. + + +# Formatting specifiers +| Specifier | Function | +| --------- | ---------------------------------------------------------------------------------------------------------------------------------------- | +| `%d` | Display an integer | +| `%f` | Display a float. Specify the number of places to round to by adding a decimal and a number, eg `%.2f` would round to two decimal places. | \ No newline at end of file diff --git a/education/software development/ECE1400/Types.md b/education/software development/ECE1400/Types.md deleted file mode 100644 index e69de29..0000000