-4

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

void function()
{
  //do something;
  continue; //instead of return
}
SKPS
  • 5,433
  • 5
  • 29
  • 63

1 Answers1

6

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

Yu Hao
  • 119,891
  • 44
  • 235
  • 294