while(1) switch(x) { ... case n: x = ; break; ... } can be replaced by: ... label n: goto