Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 11741
0 votes
1 answer
534 views

De-referencing an array of pointers to structures

If I know I'll have 10 of them, it seems like the way to go is to make an array of pointers to structs: entry* ptrArray[10]; and then loop i = 0 -> 10 ptrArray[i] = malloc(sizeof(entry)); I am running … together in this array, could I loop through 0 -10 and for 1 through 9 do something like: ptrArray[i]->next = ptrArray[i+1]; It seems like I should be able to because the array just has pointers to structs
borker's user avatar
  • 301