I was just assigned a project to do in C in my class, but my professor didn't teach anything about C, so I'm just trying to learn as I go.

How do I assign values to different parts of a node?

The main code that runs I have is: (This was given in the assignment)

```
Node n2, n3, n4, times, plus;

setNode(&n2, 2, NULL, NULL, true);
setNode(&n3, 3, NULL, NULL, true);
setNode(&n4, 4, NULL, NULL, true);

printf("\n");

setNode(&times, '*', &n3, &n4, true);
setNode(&plus,  '+', &n2, &times, true);

printf("  Tree evaluation: %d\n\n", eval(&plus));

```

and in the header file:

```
typedef struct Node_t {
    int             value;
    struct Node_t   *left;
    struct Node_t   *right;
} Node, *Node_p;

```

What I have so far for setNode is:

```
void setNode(Node_p np,
         int    value,
         Node_p left,
         Node_p right,
         bool   display) {

np->value;
}

```

How do I fill in the values for left and right? And how do I access them in another method `eval`?

I've been googling for days and can't figure out what I'm exactly looking for. I know Obj-C pretty well, but this is just over my head. Any answers or links to resources would be awesome.