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