Question

Does it make sense to use continue instead of return, while completing a function in C++?

void function()
{
  //do something;
  continue; //instead of return
}
Était-ce utile?

La solution

No, continue can be only used inside while, for, or do.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top