Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #140495

Re: Didactic "white lies"

From Anton Shepelev <anton.txt@gmail.com>
Newsgroups comp.lang.c
Subject Re: Didactic "white lies"
Date 2019-02-03 18:57 +0300
Organization A noiseless patient Spider
Message-ID <20190203185707.98537e7aefe86b8a08dfdbba@gmail.com> (permalink)
References <lies-20190203151329@ram.dialup.fu-berlin.de>

Show all headers | View raw


Stefan Ram:

> One white lie I tell at the beginning of my C course, when
> the proper treatment of pointers still is in a remote
> distance:
>
> To explain "char *": "char" means "character", and the "*"
> means the preceding thing can be repeated arbitrarily
> often, so "char *" means "a sequence of characters". -
> Explanation without the need to speak of anything that was
> not treated yet.

Can't you limit string manuipulation to arrays

  char s[255];

and indexing

  char c;
  c = s[14];

before you move on to pointers?

My 8-bit editor cannot handle you quotation marks.

-- 
()  ascii ribbon campaign -- against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]

Back to comp.lang.c | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Didactic "white lies" Anton Shepelev <anton.txt@gmail.com> - 2019-02-03 18:57 +0300
  Re: Didactic "white lies" Anton Shepelev <anton.txt@g{oogle}mail.com> - 2019-02-04 12:15 +0300

csiph-web