Pregunta

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

void function()
{
  //do something;
  continue; //instead of return
}
¿Fue útil?

Solución

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top