我想知道在这种情况下,compiller会将int变量大小调整到最大可能值吗?或者它会使用整个32位int?
pseudocode:
int func()
{
    if (statement)
        return 10;
    else if (statement2)
        return 50;
    else
        return 100;
}
// how much memory will be alocated as it needs only 1 byte?