LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Richard Russell <richard@yellowgoanna.com>
To : Jake Hawkes <jakehawkes2001@yahoo.com>
Date: Thu, 29 Nov 2001 00:19:06 +1030
Re: strange C code
On Wed, Nov 28, 2001 at 05:29:52AM -0800, Jake Hawkes wrote:
>
>
> I've never seen this before:
nor have I, but which specific part are you referring to? the switch
statement? the particular output it gives you? I get '1', which seems
to make perfect sense to me... unless I'm missing something here...
rr
>
>
> #include <stdio.h>
>
> void main(void)
> {
> switch(1)
> {
> default:
> printf("default");
> case 2:
> printf("2\n");
> break;
> case 1:
> printf("1\n");
> break;
> }
> }
>
>
> waddaya reckon the output would be?
>
> --Jake
>
> =====
> ---
> Jacob Hawkes, B. Eng (CSE)
> Programmer / Analyst
> Metso Automation
> jacob.hawkes@metso.com
> jakehawkes2001@yahoo.com (while onsite in Venezuela)
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> --
> LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
> To unsubscribe from the LinuxSA list:
> mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
>
--
Richard Russell
Yellow Goanna Pty Ltd
e: richard@yellowgoanna.com
m: +61 412 827 805
f: +61 8 8462 2362
--
LinuxSA WWW: http://www.linuxsa.org.au/ IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page