Re: "Hello World" without semicolon with a difference
From: Keith Thompson (kst-u_at_mib.org)
Date: 02/20/04
- Next message: Papadopoulos Giannis: "Re: Most negative double value"
- Previous message: Michael Mclaughlin: "New Webmaster Forum"
- In reply to: Joona I Palaste: "Re: "Hello World" without semicolon with a difference"
- Next in thread: ankursinha: "Re: "Hello World" without semicolon with a difference"
- Reply: ankursinha: "Re: "Hello World" without semicolon with a difference"
- Reply: Keith Thompson: "Re: "Hello World" without semicolon with a difference"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 20 Feb 2004 00:09:20 GMT
Joona I Palaste <palaste@cc.helsinki.fi> writes:
> Keith Thompson <kst-u@mib.org> scribbled the following:
> > ankur_sinha@hotmail.com (ankursinha) writes:
> >> Is it possible to write a C program that prints "Hello World" on
> >> screen without having a single semi-colon in the entire program?
> >> The extra constraint here is that u r not allowed to use
> >> if,while,switch etc.
>
> > Why would you want to do that? Are you and Aniruddha taking the same
> > class? (Aniruddha has been posting to comp.lang.c.moderated asking
> > how to access command line arguments without using argc and argv, and
> > how to emulate sizeof without using sizeof.)
>
> Accessing command line arguments without using argc and argv is easy.
> Just name the parameters something else. =)
That was one of the proposed solutions over in clcm, but the Aniruddha
said it didn't fit the specification (without explaining why using
argc and argv wasn't acceptable).
I suspect some instructor in India is assigning these silly problems
without making it sufficiently clear that asking Usenet to do your
homework for you is not acceptable. (I'm not picking on India; of the
two blatant examples of this I've seen, both posters have
Indian-sounding names, one posted from a *.in address, and the other
used a hotmail address.) That's just speculation; there may be no
connection between the two posters, but the questions have the same
feel to them.
There may be legitimate reasons for these questions, or they may be
intended as fun but meaningless challenges (I have no problem with
that) but until I know *why* using the features of the language is not
an acceptable solution I'm not inclined to be helpful.
-- Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst> San Diego Supercomputer Center <*> <http://www.sdsc.edu/~kst> Schroedinger does Shakespeare: "To be *and* not to be"
- Next message: Papadopoulos Giannis: "Re: Most negative double value"
- Previous message: Michael Mclaughlin: "New Webmaster Forum"
- In reply to: Joona I Palaste: "Re: "Hello World" without semicolon with a difference"
- Next in thread: ankursinha: "Re: "Hello World" without semicolon with a difference"
- Reply: ankursinha: "Re: "Hello World" without semicolon with a difference"
- Reply: Keith Thompson: "Re: "Hello World" without semicolon with a difference"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|