I came across a piece of code void *p = &&abc;. What is the significance of && here? I know about rvalue references but I think && used in this context is different. What does && indicate in void *p = &&abc; ?
&& is gcc's extension to get the address of the label defined in the current function.
void *p = &&abc is illegal in standard C99 and C++.
This compiles with g++.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With