Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eurphus/c-guides
A small collection of guides for learning C
https://github.com/eurphus/c-guides
Last synced: 8 days ago
JSON representation
A small collection of guides for learning C
- Host: GitHub
- URL: https://github.com/eurphus/c-guides
- Owner: Eurphus
- Created: 2024-03-03T05:08:41.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-11T21:53:14.000Z (8 months ago)
- Last Synced: 2024-03-11T22:49:46.157Z (8 months ago)
- Language: C
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# C-Guides
A small collection of guides for learning C## Important Information
### C Information
#### Procedural
Imperative: Uses statements to change a programs stateCode becomes a series of logical instructions to execute.
#### Statically Typed
| Type | What is it? | Languages |
|--|--|--|
| Static Typing | All variable types are defined, types are known at compile time. Advantages include better bug catching, as compiler can detect type issues during compiling. | Java, C# |
| Dynamic Typing | Type is associated with run-time values, does not need to be explicitly defined in the code Advantages include it being easier to write code | Racket, Javascript, Python |\Statically typed means variable types are defined and known before the compiler does it's thin
### Memory
1 byte = 8 bits
* int : 4 bytes
* bool : 1 byte
* char : 1 or 4 byte
* struct
* At least the sum of all types within the structure
* Typically compiler will pad/offset in a way that is most efficient