I am interested if there is any difference from the C or C++ compiler perspective whether I use:
if (value == a) {
...
}
else if (value == b) {
...
}
else if (value == c) {
...
}
versus
switch (value) {
case a:
...
break;
case b:
...
break;
case c:
...
break;
}
It feels to me that there is no difference, just syntactic. Does anyone know more about it?
Thanks, Boda Cydo.