Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
C Pointers, Memory, and Low-Level Concepts
·
Module 3
Arrays, Strings, and Pointer Decay
1
Array Memory Layout and Row-Major Indexing
Explain the memory layout of 1D and 2D arrays and how elements are accessed via row-major indexing.
2
Arrays vs. Pointers: Equivalence and Differences
Distinguish between array names and pointers, explaining when they are equivalent and when they differ (e.g., `sizeof`, address-of operator).
3
Arrays vs. Pointers for Strings: Memory and Mutability
Explain the difference between `char arr[] = "string"` and `char *p = "string"` in terms of memory location and mutability.
4
Passing Arrays to Functions: Pointer Decay Explained
Pass 1D and 2D arrays to functions using pointer notation and explain the mechanism of pointer decay.
5
C String Manipulation and Pitfalls
Manipulate C strings using pointer arithmetic and identify common pitfalls like buffer overflows and missing null terminators.
Previous module
Pointers, `const`, and Core Operations
Next module
Advanced Pointers and Memory Layouts