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

Re: case labels

Subject: Re: case labels
From: Richard Tobin
Date: 28 Mar 2008 17:57:40 GMT
Newsgroups: comp.lang.c

In article <eaf6bc4e-dbaa-4ec7-b0d4-4f9dc337647a@xxxxxxxxxxxxxxxxxxxxxxxxxxx>,
 <aarklon@xxxxxxxxx> wrote:

>The real elaborate question i wanted to ask was
>
>why are constant integer expressions required in case labels of the
>switch statement? what would be the impact of allowing general integer
>expressions instead of constant integer expressions? discuss both user
>convenience and implementation aspects?

Why not run a C course and ask your students?

-- Richard
-- 
:wq

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