"Oh NO!" screamed Darin McBride.
"I've lost my notes on atoi(const char *s)!"
"I'll fail the test!"
"I know, I'll get them off Adam Majer..."
Hi Darin McBride,
DM> Rather a bit of overkill since 16-bit ints can only have 5 bytes (plus
DM> the nul) = 6. ;-)
SL> printf("Enter a number: ");
SL> scanf("%s", sTemp);
AM> NULL pointer!!!!! Causes lot's of run-time errors. You must allocate the
AM> memory before using it.
DM> Nope NOT NULL pointer!!!! _RANDOM_ pointer. :-)
Wait a second? Is this PSEUDOrandom or is it TRULY random?
There could be interesting implications...
Scry you later!
Fendolin...
... Honesty is the best policy, but insanity is a better defense.
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)
|