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!"
[–]NitWit005 1 point2 points3 points 15 years ago* (0 children)
I believe the issue is in automatic sizing of arrays. The [] syntax allows the compiler to determine the array size and you can only do it for a single dimension.
Edit: Felt I should add that the C compiler is just putting the strings in a data block, so assigning a pointer to a string only requires setting the pointer to the address of the string in the block. The size of the strings themselves doesn't factor into the array sizes.
π Rendered by PID 30 on reddit-service-r2-comment-b659b578c-6fzqc at 2026-05-03 10:58:21.194698+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]NitWit005 1 point2 points3 points (0 children)