+ 3
Help understanding pointers
Please help it doesn't make sense to me
6 ответов
+ 6
On modern operating systems, programs are typically split into virtual memory pages, typically 4096 bytes long. It allows for having protected memory regions and not having all of a program loaded into physical memory at once or having to be in a contiguous part of ram. It also has the advantages of avoiding external fragmentation and easy page look ups for converting virtual addresses to physical addresses.
+ 2
@Jordan Chapman Not just variables though, they can point to other things such as pages, functions, and modules
+ 2
thanks, I'll have to look into that
+ 1
a pointer just holds the memory location of a variable. You will get into more uses for pointers later in the course.
also, just a warning: don't use capse lock for posts. It's against guidelines and these guys don't like it
+ 1
ahh, my bad. What do you mean by pages though?