Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我错误地将函数名用作变量时,它会导致中止。
条件是这样的:
hello() { } if(!hello) //this is crashing { }
据我了解,此代码不应崩溃,因为函数名称是有效地址。也正因为如此,我的数据段被损坏(在崩溃检查中看不到任何变量)。