User Tools

Site Tools


Sidebar

projects

ntr0 (due 20250827)
pct0 (bonus; due 20250827)
pct1 (bonus; due 20250827)
wcp1 (due 20250827)
pct2 (due 20250903)
wcp2 (due 20250903)
haas:fall2025:data:week1

Week 1

  • Welcome!
  • Review, ask questions on C and pointers.
    • try writing sample code employing various concepts
    • pointers are a fixed size, regardless of data type
      • why? MEMORY ADDRESSING
      • on lab46 (running on a 64-bit OS/system), memory addresses are 64-bits (64/8 = 8 bytes)
        • so all pointers (whether char, int, float, etc.) will be 8 bytes in size on this system.
      • on other systems, notably 16-bit and 32-bit systems (especially late-era hardware that might have incorporated tweaks to support more memory than is typically accessible by the default machine word size), memory address sizes can vary.
      • takeaway: for code portability, do not assume 8 byte memory addresses. ALWAYS use sizeof() to maximize portability.
haas/fall2025/data/week1.txt · Last modified: by 127.0.0.1