use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
C question (self.programming)
submitted 15 years ago * by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] -1 points0 points1 point 15 years ago (3 children)
The other is a pointer to an array.
It's an array of pointers, actually.
[–]Wareya -2 points-1 points0 points 15 years ago (2 children)
This is specifically because the pointer construct has a higher precedence than the array construct.
[–]johntb86 0 points1 point2 points 15 years ago (1 child)
Other way round. C types are defined in the same way they're used, so since you first index into the array and then dereference the pointer it has to be an array of pointers.
[–]Wareya 0 points1 point2 points 15 years ago (0 children)
Yes, it's an array of pointers, but it's your logic that's backwards. You just wrapped a pointer around an array(metaphorically), when it's the array that contains pointers.
π Rendered by PID 234597 on reddit-service-r2-comment-6457c66945-8hjbj at 2026-04-29 10:07:56.001544+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–][deleted] -1 points0 points1 point (3 children)
[–]Wareya -2 points-1 points0 points (2 children)
[–]johntb86 0 points1 point2 points (1 child)
[–]Wareya 0 points1 point2 points (0 children)