On a side note, people have been telling me that pointers is the most difficult part of C to understand. Is that true for most people?
Type: Posts; User: pyroknife
On a side note, people have been telling me that pointers is the most difficult part of C to understand. Is that true for most people?
Thank you guys.
Oh and I think I get it. So basically list_pointer!=(struct entry *) 0
is checking to see if list_pointer is actually pointing to something. Initially it is pointing to n1 which...
// Program to traverse a linked list#include <stdio.h>
int main (void)
{
struct entry
{
int value;
struct entry *next;
};
struct entry n1, n2, n3;
struct entry *list_pointer = &n1;