tubeshowcase●1,194,391 videos♡ My collection 0
← Learn to Code

Learn to Code08:04

C pointers explained👉

Bro Code ↗

From the creator

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; }

Published 2021-10-06 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code