📜  为什么函数不会停止 C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:46.075000             🧑  作者: Mango

代码示例1
//check location of return statement

//Add return statement after void
case '2':
        void displayInfo();
        return displayInfo();
        break;

//Not after switch closes, as then it will return nevertheless