Search Results
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 |
0
votes
1
answer
194
views
Declaring a typedef struct for linked list
In Lecture 4, David uses this to declare a node struct:
typedef struct node
{
int n;
struct node *next;
}
node;
However, in shorts after Lecture 4, Doug explicitly tells us that when declaring … such linked structs we have to use temp names like this:
typedef struct node_temp
{
int n;
struct node_temp *next;
}
node;
Are they both right and am I missing something? …