One favourite thing to apply the `right-left' rule to when explaining
this to people is the standard library's signal(3). :-)
void (*signal(int, void (*)(int)))(int);
Wow. This sort of thing does my head in. definitely not something for a
cursory look at. You need to heave your head
Hi Tim,
> > > > `const char *p' means p is a pointer to a char that's const.
>
> Although it's a bit ugly in this case, I prefer to write this as
>
> char const *p
>
> Then you can read right to left:
>
> p is a pointer to a const char.
That's true; it saves the "that's" on each
Hi Ralph
On 22/01/18 14:04, Ralph Corderoy wrote:
Hi Terry,
`const char *p' means p is a pointer to a char that's const.
Although it's a bit ugly in this case, I prefer to write this as
char const *p
Then you can read right to left:
p is a pointer to a const char.
This makes life
3 matches
Mail list logo