Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Understanding the program that has pointers to two_dimensional arrays Date: Mon, 05 Dec 2016 12:10:36 -0800 Organization: None to speak of Lines: 32 Message-ID: References: <481da833-61f6-4f1c-973b-1b129118c682@googlegroups.com> <128218c6-6fa1-49e3-8224-93d5810d060c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="f21d38049ad0d524c578eed3c5fbedbb"; logging-data="19552"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/AJbve6KgNAoBfwYmN15LY" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:DnjXtRIbM8pjFml7qRcCBnTe4XE= sha1:WyxS1ctovU6TXF06S2NUdPRbreU= Xref: csiph.com comp.lang.c:98057 Alla _ writes: > On Monday, December 5, 2016 at 8:26:46 PM UTC+3, Keith Thompson wrote: >> Alla _ writes: >> > Please, take a look at my reading of the program (in comments to each >> > statement) that uses pointers to two-dimensional arrays. Is my >> > understanding correct, i.e. do correctly interpret the given code? >> > And, please, help me to understand one part closer to the end of the >> > program. >> >> I presume this is code you got from someone else, not something you >> wrote. >> >> The indentation is inconsistent and IMHO excessive. The comments are >> far more verbose than you'd want in real-world code, but the program is >> obviously intended for teaching, not production. >> > I am sniping the rest of your message - I have just started reading it, > but have decided to comment on these two paragraphs first: > yes, of course, I have not written this code; this is the code I have > picked up from a book on pointers. But all these bizarre looking and > excessive comments are mine, and they are not intended to be > usual comments to a program but a mere description of the way > I read the code :) > What book? -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"