This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
7
Embedding an array in a struct
Post Flair (click to view more posts with a particular flair)
Post Body
If I define a struct with a field that is an int array of known size (let's say 20), will that array be actually stored as if it's was 20 ints inside the struct? Or will it be an int* pointing to another location in memory where these 20 ints are stored? Can I control which of the two (pointer to another location or actual embedding) is happening?
Thank you!
Author
Account Strength
100%
Account Age
17 years
Verified Email
Yes
Verified Flair
No
Total Karma
13,905
Link Karma
2,072
Comment Karma
11,818
Profile updated: 2 days ago
Posts updated: 8 months ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 1 year ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/C_Programmi...