comp.lang.c
[Top] [All Lists]

Re: case labels

Subject: Re: case labels
From:
Date: Fri, 28 Mar 2008 13:31:17 -0400
Newsgroups: comp.lang.c

Keith Thompson <kst-u@xxxxxxx> wrote:
> 
> Having said that, there's nothing forbidding a compiler from treating
> a switch statement like an if/else chain anyway (and it will probably
> have to do something like that if the range of cases is very large).

Indeed, most compilers have a number of different strategies for
implementing switch statements that they choose from based on things
like the number of cases, their range, and density.

-Larry Jones

When I want an editorial, I'll ASK for it! -- Calvin

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy