I am a newbie of C language, I have a question about return
statement in C:
void verifyValue(int value)
{
return;
}
void handleValue(int value)
{
switch(value)
{
case 1:
// do something
break;
case 10:
verifyValue(value);
// the rest of code part 1
break;
default:
break;
}
}
int main()
{
int vlaue = 10;
handleValue(value);
// the rest of code part 2
}
so the verifyValue()
function will return in case 10
, once it returns, will the rest of code part 1 continue to execute or the rest of code part 2 continue to execute, from where this return in verifyValue()
really returned?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…