V
v4vijayakumar
'continue' within switch actually associated with the outer 'while'
loop. Is this behavior protable?
int ch = '\n';
while (true) {
switch(ch) {
case '\n': cout << "test"; continue;
}
}
the above loop executed endlessly in "gcc version 2.96 20000731 (Red
Hat Linux 7.3 2.96-110)".
loop. Is this behavior protable?
int ch = '\n';
while (true) {
switch(ch) {
case '\n': cout << "test"; continue;
}
}
the above loop executed endlessly in "gcc version 2.96 20000731 (Red
Hat Linux 7.3 2.96-110)".