Skip to content

Commit 5dc061c

Browse files
committed
Update cembedded doc
1 parent a82730c commit 5dc061c

1 file changed

Lines changed: 9 additions & 13 deletions

File tree

src/cembedded/README.md

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
# 1. Core C Basics for Embedded Systems
22

3-
```
4-
Your Foundation for Embedded Programming
5-
```
63
**Topics Covered:**
74

8-
- Variables & Data Types
9-
- Operators & Control Flow
10-
- Functions
11-
- Arrays & Strings
12-
- Basic Input/Output
13-
- Practice Problems
5+
- 1.1 Variables & Data Types
6+
- 1.2 Operators & Control Flow
7+
- 1.3 Functions
8+
- 1.4 Arrays & Strings
9+
- 1.5 Basic Input/Output
10+
- 1.6 Practice Problems
1411

1512
## 1.1 Variables & Data Types
1613

@@ -268,10 +265,12 @@ printf("Hello %s, you are %d years old!\n", name, age);
268265
269266
**Common Format Specifiers**
270267
271-
| Specifier | Data Type | Example |
268+
| Specifier | Data Type | Example |
272269
|---------------|----------------|------------------------------|
273270
| %d or %i | int | printf("%d", 42); |
271+
| %ld | long | printf("%lu", 255); |
274272
| %u | unsigned int | printf("%u", 255); |
273+
| %lu | uint32_t | printf("%lu", 255); |
275274
| %f | float/double | printf("%.2f", 3.14); |
276275
| %c | char | printf("%c", 'A'); |
277276
| %s | string | printf("%s", "Hello"); |
@@ -281,9 +280,6 @@ printf("Hello %s, you are %d years old!\n", name, age);
281280
282281
## 1.6. Practice Problems
283282
284-
Here are some hands-on exercises to solidify your understanding. Try to solve these
285-
without looking at solutions first!
286-
287283
**Problem 1: Temperature Converter**
288284
289285
Write a program that converts temperature from Celsius to Fahrenheit using the

0 commit comments

Comments
 (0)