Question
1.
int main()
2.
{
3.
register int i = 1;
4.
int *ptr = &i;
5.
cout
What will be output of this function?
1.
int main()
2.
{
3.
register int i = 1;
4.
int *ptr = &i;
5.
cout
Answer: Option C
Was this answer helpful ?
Using & on a register variable may be invalid, since the compiler may store the variable in a register, and
finding the address of it is illegal.
Was this answer helpful ?
More Questions on This Topic :
Question 8.
The size_t integer type in C++ is?
....
Submit Solution