C++ Learning Notes 10
Memory Space Occupied by Pointers:A pointer is also a data type, so how much memory does this data type occupy?In a 32-bit operating system, it occupies 4 bytes of memory.In a 64-bit operating system, it occupies 8 bytes of memory.Example: #include <iostream> using namespace std; int main(){ int a = 10; int* p = &a; … Read more