Lies in education [was Re: The "loop and a half"]
On Wed, 2017-10-11 at 15:14 +0100, bartc wrote:
> On 11/10/2017 14:16, Marko Rauhamaa wrote:
> > Python and C don't try to protect you. In return, you get syntactic
> > convenience that probably enhances the quality of your programs.
> Python, maybe. C syntax isn't as painful as C++ but I still have a lot
> of trouble with it. (Eg. the variable declaration 'char(*(*x)())'.
> The name of the variable can be found lurking in that lot somewhere, but
> what's the type?) Not so convenient.
I believe the type of any variable in C is the same as its declaration,
but with the variable name deleted. So:
That is, an array of 3 pointers to functions that return pointers to
arrays of 5 characters.