Consider the below code:
int main(void)
{
class inner
{};
friend class inner; /* what does this signify???? */
return 0;
}
what does 'friend class inner' mean in the above code. its not inside a
class.......
This code is compilable in microsoft c++ compiler 12.0 and 13.0 but
not compilable in gnu c++ compiler. gnu c++ compiler will report the
following error:
`friend' can only be specified inside a class