#include <iostream>
struct A
{
int arr[666];
};
int main()
{
std::cout<<sizeof( (static_cast<A*>(nullptr))->arr); //OK?
}
The code above could be run without error. Does standard say anything about such situation?
#include <iostream>
struct A
{
int arr[666];
};
int main()
{
std::cout<<sizeof( (static_cast<A*>(nullptr))->arr); //OK?
}
The code above could be run without error. Does standard say anything about such situation?