質問

Suppose the code goes like this

void b()
{
...
}
void c()
{
    b();
}



is c considered terminated after the call to b but b has not yet terminated?

役に立ちましたか?

解決

You can verify using debug messages:

void b()
{
    cout << "b()" << endl;
}
void c()
{
    b();
    cout << "ended c()" << endl;
}

So, the ended c() appears after b() message.

他のヒント

No, c() is not supposed to be terminated before b() is terminated in general case.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top