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

Re: case labels

Subject: Re: case labels
From: CBFalconer
Date: Fri, 28 Mar 2008 11:59:10 -0500
Newsgroups: comp.lang.c

aarklon@xxxxxxxxx wrote:
> 
> why general integer expressions are not allowed in case labels in
> switch statements..????

Because a common switch implementation is an indexed jump through a
fixed table of destinations.

-- 
 [mail]: Chuck F (cbfalconer at maineline dot net) 
 [page]: <http://cbfalconer.home.att.net>
            Try the download section.



-- 
Posted via a free Usenet account from http://www.teranews.com


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