| Subject: | Re: case labels |
|---|---|
| From: | Ian Collins |
| Date: | Fri, 28 Mar 2008 19:18:10 +1300 |
| Newsgroups: | comp.lang.c |
sumsin wrote: > On Mar 28, 10:03 am, Ian Collins <ian-n...@xxxxxxxxxxx> wrote: >> aark...@xxxxxxxxx wrote: >>> Hi, >>> why general integer expressions are not allowed in case labels in >>> switch statements..???? >> Because they must be compile time constants. >> *Please* don't quote signatures. > > Could you elaborate this concept? The language requires case labels to be compile time constants. There really isn't a concept to elaborate on. -- Ian Collins. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Enum type check in function call, Pritam |
|---|---|
| Next by Date: | Re: Enum type check in function call, Ian Collins |
| Previous by Thread: | Re: case labels, sumsin |
| Next by Thread: | Re: case labels, Keith Thompson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |