https://github.com/bengabp/cpp_learning
Learning c++ from scratch
https://github.com/bengabp/cpp_learning
cpp gpp self-learning
Last synced: 28 days ago
JSON representation
Learning c++ from scratch
- Host: GitHub
- URL: https://github.com/bengabp/cpp_learning
- Owner: bengabp
- Created: 2025-01-15T20:49:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-17T22:50:16.000Z (over 1 year ago)
- Last Synced: 2025-12-27T02:53:06.397Z (6 months ago)
- Topics: cpp, gpp, self-learning
- Language: C++
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Compiling c++ code using g++
```bash
g++ -o hello hello.cpp && ./hello
```
# Common data types
|Type | Bytes | Range |
|:-----|:-------:|:------------------|
| short| 2 | -32,768 to 32,767|
| int | 4 | -2B to 2B |
| long | 4 | -2B to 2B |
| long long | 8 | really large |
| double| 8 | -1.7E308 to 1.7E308 |
| float | 4 | -3.4E38 to 3.4E38 |
| long double | 8 | -3.4E932 to 3.4E932 |
| bool | 1 | true/false |
| char | 1 | single characters |