struct node {
int data;
struct node* next;
};
int main (int argc, char * const argv[]) {
struct node *start_ptr = NULL;
struct node *newpointer = NULL;
newpointer->next = NULL;
start_ptr->next = newpointer;
return 0;
}
But, when I run I get EXC_BAD_ACCESS at newpointer->next = NULL; and do not know why. Any help on the matter would be appreciated.