+ 6

When values are assigned to the variables in c

I know that the variable values is assigned in runtime but what about the constant variable ? is it the same #define is pre processing so it is changed befor compiling

9th Nov 2018, 4:08 PM
ABADA S
ABADA S - avatar
1 Respuesta
+ 5
Depends on the compiler & operating system. It could be treated like code and loaded that way or there could be a initialization function called prior to main to put the values in place.
9th Nov 2018, 5:29 PM
John Wells
John Wells - avatar