default
Jack Jansen
jack at vu44.UUCP
Mon Jun 25 19:51:28 AEST 1984
This has probably been discussed before, as everything has,
but here goes :
What does
switch(i) {
...
switch(j) {
...
default: ...
}
}
do if there is no case corresponding to i?
I can imagine even worse constructions like
switch(i) {
switch(j) {
default:....
}
switch(k) {
default:....
}
}
Or I could even add a 'goto default'.........
(Note: my C Ref Man doesn't say that default is a reserved word,
so using default as an ordinary label is perfectly legal)
Jack Jansen, {philabs!decvax}!mcvax!vu44!jack
More information about the Comp.lang.c
mailing list