C-1: C Basics — X-ray View
C คือ X-ray ของ data — เครื่องมืออื่นซ่อนรายละเอียดไว้ แต่ C แสดงทุกอย่างตรงๆ ถ้าเข้าใจ C คุณจะเข้าใจว่า ทำไม Sheets, Python, และ SQL ถึงทำงานแบบนั้น
Learning Flow
Section titled “Learning Flow”Learning Goals
Section titled “Learning Goals”- รู้ว่า C มี types พื้นฐานอะไรบ้าง — char, int, long, float, double — และแต่ละตัวใช้กี่ bytes
- ใช้ sizeof() วัดขนาดจริงของ data type ในหน่วยความจำได้
- เข้าใจ printf format specifiers — %d, %f, %c, %s, %zu — และเลือกใช้ได้ถูกต้อง
- เข้าใจว่า arrays ใน C ทำงานอย่างไร โดยเฉพาะ char arrays ที่เป็น strings
Progress 0 / 4
ทำไมต้องเรียน C ใน Data Path?
Section titled “ทำไมต้องเรียน C ใน Data Path?”คุณไม่จำเป็นต้องเป็น C programmer — แค่ต้อง มองผ่าน C เพื่อเข้าใจว่า data ถูกเก็บอย่างไรจริงๆ
บทเรียน
Section titled “บทเรียน” C-1.1 Types & sizeof char, int, long, float, double — แต่ละตัวกินพื้นที่เท่าไหร่?
C-1.2 printf Formats ข้อมูลเดียวกัน แสดงต่างกัน — format specifier คือต้นกำเนิดของ display formatting
C-1.3 Arrays & Strings char arrays คือ strings — และ null terminator คือสิ่งที่ SQL ยืมไป
Lab: Print All Sizes เขียนโปรแกรม C ที่แสดง sizeof ของทุก type แล้ว map ไปยัง SQL