TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:10678] Simple C Question
On Wed, Dec 01, 1999 at 10:43:11AM -0600, Mike Hicks wrote:
> Brian Ackermann wrote:
> >
> > Ok, simple question for all you C programmers out there...
> >
> > Here's the line of code in question...
> >
> > printf("%s\n", (char *)(FO_Offset+=16));
>
> Hmm.. looks to me like this would output the ASCII characters with the
> values 16, 32, etc., instead of the strings '16', '32', etc..
No, he's lucky he's not core-dumping his program. He's
generating pointers off into random chunks of memory and hoping to find
strings there.
Have fun (if at all possible),
--
Its name is Public Opinion. It is held in reverence. It settles everything.
Some think it is the voice of God. Loyalty to petrified opinion never yet
broke a chain or freed a human soul. ---Mark Twain
-- Eric Hopper (hopper@omnifarious.mn.org
http://ehopper-host105.dsl.visi.com/~hopper) --
PGP signature