Skip to content
0:00 / 0:00

#pointers#memoryallocation#c

Introduction to pointers in C/C++

mycodeschool

814K subscribers • 3 videos on Hallway

YouTube
  • Recommended by 4 people: 4 in engineering communities.
  • A classic. People kept recommending it from 2016 to 2021.

Beginner. No background in the topic needed.

1.6M views13 years ago4 recommendations

Programming languagesComputer scienceCC++Memory management

An introductory tutorial explaining the concept of pointers, memory addresses, and how they work in C and C++.

See complete series on pointers here youtube.com/playlist?list=PL2_aWCzGMAwLZp6LMUKI3cc7pgGsasm2_ Pointers is one concept that does not go down well with beginners in C/C++. In this tutorial, we have tried to demystify the concept of pointers. Prerequisite: You should know how to write a basic C program to add two numbers. Check our next lesson here: youtube.com/watch?v=X1DcpcgSUXw&list=UUlEEsT7DkdVO_fkrBw0OTr… For practice problems and more, visit: mycodeschool.com Like us on Facebook: facebook.com/MyCodeSchool Follow us on twitter: twitter.com/mycodeschool

Why it's here

4 people recommend this

What people say. Widely recommended as one of the clearest and most helpful tutorials for beginners struggling to understand pointers.

Moments people linked to

u/5nslin r/C_Programming • Recommends

On “Mid Term over C on Thursday; Seeking good resources to help me understand pointers, arrays, and strings better”

Definitely mycodeschool's playlist on pointers. It covers its application on arrays and strings as well. [video

u/CorrectMyBadGrammarin r/C_Programming • Recommends

On “Pointers”

I recommend this tutorial. Richard Buckland explains it very well too.

u/Ranilinkoin r/C_Programming • Recommends

On “Anyone got a link or a vide that make you understand how pointer work?”

Best series on pointers ever made: link to this video

u/PunnyYolksin r/C_Programming • Recommends

On “can someone explain pointers to me?”

If you have the time I highly recommend watching this playlist. link to this video The first few videos alone will help you understand a lot. He's got a bit of an accent, but the subtitles are spot on.

u/Ua-Rarin r/C_Programming • Mentions

On “How are variables that store primitive types implemented in C?”

The reason I think that variables that store primitive types have to somehow store the address is because I don't understand how else you can store the value. Everything has to be stored in memory. A declaration like `int x = 4` has to somehow store the integer value 4 in the variable x. How else can x store this information without storing a pointer to the 4 bytes that are used to store the number 4? (assuming 4-byte integers). In this video he says that the computer has an "internal structure" that he calls a lookup table that stores the information the x is an int, and has base address whatever. That would make perfect sense to me. To be clear; I'm not saying that you…
1View on Reddit

u/Ua-Rarin r/C_Programming • Mentions

On “How are variables that store primitive types implemented in C?”

That makes a lot of sense. I think I do understand that somewhere in my RAM there lives those 4 bytes storing the value in x. And I do understand that x is an *integer* -- it's not a pointer, I can't deference it, no pointer arithmetic, etc etc. It does not store an address. I suppose I should have been more explicit in my original post; I wasn't trying to say x stored a pointer -- I was just trying to say that *somewhere* there must be the address of x for the computer to know where to go to get its value. I guess my question was just how the computer knows the value of x if it didn't store the address of it somewhere. This video says that it stores the address and types of variab…
1View on Reddit