int fun()
{
printf("\ncrap");
}
void main()
{
printf("\n return value of fun %d", fun());
}
int fun()
{
printf("\ncrap");
}
void main()
{
printf("\n return value of fun %d", fun());
}
和please,你能解释一下堆栈如何为返回值分配内存以及堆栈如何工作。返回int的函数的返回值是什么,但没有明确地返回任何东西。例如
我知道这是依赖于架构,但是,我要求一个普通的东西。 – Invictus