Skip to content
0:00 / 0:00

#pointers#c

C pointers explained👉

Bro Code

3.4M subscribers • 3 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.

Beginner. No background in the topic needed.

437K views5 years ago2 recommendations

Programming languagesCMemory management

An introductory tutorial explaining how pointers and memory addresses work in the C programming language.

C pointers tutorial example explained #C #pointers #tutorial void printAge(int *pAge) { printf("You are %d years old\n", *pAge); //dereference } int main() { // pointer = a "variable-like" reference that holds a memory address to another variable, array, etc. // some tasks are performed more easily with pointers // * = indirection operator (value at address) int age = 21; int *pAge = &age; printAge(pAge); //printf("address of age: %p\n", &age); //printf("value of pAge: %p\n", pAge); //printf("size of age: %d bytes\n", sizeof(age)); //printf("size of pAge: %d bytes\n", sizeof(pAge)); //printf("value of age: %d\n", age); //printf("value at stored address: %d\n", *pAge); //dereferencing return 0; }

Why it's here

2 people recommend this

What people say. Recommended as a useful and intuitive introduction to understanding pointers in C.

u/chet714in r/C_Programming • Recommends

On “Pointer value tutorial video”

Videos 2 and 3. Also check the playlist and Jacob Sorber's YT channel for many more C programming videos. [video Another that may help, playlist to the right of video too, and check YT channel for more. [video

u/Status-Group-3441in r/C_Programming • Recommends

On “Understand Pointers Intuitively”

This video is pretty useful I’d say link to this video