Language/C&C++ 2009.01.24 23:43
What is variable in C? Let's think about this deeply.
The variable consists of type and name.
Then, what is 'type'? and what is name?
'type' is "What the memory value means"; Way of interpreting memory.
'name' is alias of memory address.
Can you understand?
We can know that 4-byte-memory-value from address '&a' represents 'signed integer value' from C code "int a;".
Following example(ARM assembly and C codes) shows this explicitly.
// asm.s EXPORT my_symbol CODE32 my_symbol DCD 0x73d71034 ------------ // symbol.c extern char* my_symbol; int data = (int)my_symbol;
|[C/C++] Remind! Limitation of constructor; It doens't give return value!.. (0)||2009.05.15|
|[C/C++] 'const' keyword. (0)||2009.03.11|
|[C/C++] What is 'variable'?? (0)||2009.01.24|
|[C/C++] Try to avoid cross-dependency between selective-compile-switches. (0)||2008.12.14|
|[C/C++] Using static variable in large-size-file. (0)||2008.09.09|
|[C/C++] Indirect branch... (0)||2008.07.26|