LinuxSA Mailing list archives
Index:
[thread]
[date]
[subject]
[author]
[stats]
From: Jake Hawkes <jakehawkes2001@yahoo.com>
To : <linuxsa@linuxsa.org.au>
Date: Wed, 28 Nov 2001 05:29:52 -0800 (PST)
strange C code
I've never seen this before:
#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
Index:
[thread]
[date]
[subject]
[author]
[stats]
Return to the LinuxSA Mailing List Information Page