I want to know, in C ++, when do objects initialize?
Is this compilation time or link time?
For example:
extern int i;
int j=5;
extern j;
int i=10;
Now, what the compiler does: for me, it allocates memory for variables.
Now I want to know:
does it add an initialization value in this repository or is it executed during the connection?
source
share