c++ Programming Glossary: simpleobject
C++ Pointer: changing the contents without changing the address? http://stackoverflow.com/questions/16945547/c-pointer-changing-the-contents-without-changing-the-address in C Lets imagine we have the following object class SimpleObject public char name 16 int age It's size will be 20. In most platforms.. manual memory the name is s d years old n reinterpret_cast SimpleObject staticMemory name reinterpret_cast SimpleObject staticMemory.. SimpleObject staticMemory name reinterpret_cast SimpleObject staticMemory age Which outputs In static manual memory the name..
|