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 answers only not deleted user 1090
1 vote
Accepted

Declaring a typedef struct for linked list

The requirement is that you give the struct a name so you can use it in the declaration. Whether or not that is a different name isn't important. Both of those declarations are fine.
curiouskiwi's user avatar
  • 18.7k
1 vote
Accepted

Pset4: How does fread add properly to the struct?

C has a special feature that allows initializaton of structs using the {} method as you've shown, but after that point, you cannot assign values directly to an entire struct at once. …
curiouskiwi's user avatar
  • 18.7k