RE: [SLUG] Wanting to learn C - book suggestions?

From: Ken Elliott (kelliott4@tampabay.rr.com)
Date: Thu Mar 10 2005 - 21:19:19 EST


>>printf("\n");

>>has more characters than

>>echo ""

>>plus compilation. Not to say it's a _bad_ method, though.

Yes, but the C version prints nothing _so_ much faster...

  main() {prinf("doh!\n")}

Ken Elliott

=====================
-----Original Message-----
From: slug@nks.net [mailto:slug@nks.net] On Behalf Of Eben King
Sent: Thursday, March 10, 2005 11:42 AM
To: slug@nks.net
Subject: Re: [SLUG] Wanting to learn C - book suggestions?

On Thu, 10 Mar 2005, Kwan Lowe wrote:

> Ken Elliott wrote:
> > It's old, but "C Primer +" (Waite Group - Sams) was pretty darn
> > good. And a good read...
> >
> > But I'll bet someone tosses in something written this century...
>
> I'll second this...
>
> One thing I did was to convert all my scripts, no matter how
> rudimentary into C. Not practical at all, but it forced me to learn
> simple things like file access, text handling, etc..

True, and it should discourage some bad programming habits. It rather slows
down debugging, doesn't it? I mean,

printf("\n");

has more characters than

echo ""

plus compilation. Not to say it's a _bad_ method, though.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
              
      He who will not reason is a bigot; he who cannot is a fool;
        and he who dares not is a slave.  -Sir William Drummond

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:30:02 EDT