Hello again,
look at the following statements
register int i;
int* b = &i; // valid in C++, but not in C
when we use "register" specifier, it's a request to compiler that to put the variable in fast registers.
Now, If we assume that "i" has got stored in register, I am wondering what will be value of "b".
Do we really have addresses to CPU registers?
Regards
Ash
look at the following statements
register int i;
int* b = &i; // valid in C++, but not in C
when we use "register" specifier, it's a request to compiler that to put the variable in fast registers.
Now, If we assume that "i" has got stored in register, I am wondering what will be value of "b".
Do we really have addresses to CPU registers?
Regards
Ash
Comment