Code:
```#include <stdio.h>
#include <stdlib.h>

struct node {
int x;
struct node *next;
};

int main(void ) {
struct node *root;
struct node *conductor;

root = malloc( sizeof(struct node) );
root->next = NULL;
root->x=10;

conductor = root;

if(conductor != NULL) { /*At this point conductor does not = NULL*/
while(conductor->next != NULL) { /*This line confuses me. conductor->next does = NULL. Doesn't it? I didnt initialize the pointer inside of the global struct to NULL but did set a dummy node to equal NULL with the struct conductor right? Or am I just confused?*/
Â..Â..Â..Â..conductor = conductor->next; /*What exactly does this do? I want to say it traverses down the list. But am not sure.*/
Â..Â..Â..Â..}
}

conductor->next = malloc( sizeof(struct node) );
conductor = conductor->next;

if(conductor = NULL) {
fprintf(stderr, "Out of memory.\n");

else{
conductor->next = NULL;
conductor->x = 20;
}

}```
Anything else you feel like adding....

2. It moves through the linked list. Let's say you have already set up 3 nodes.
Code:
`root->next = node1, node1->next = node2;`
So let's see what it does:
Code:
```conductor = root;
if( conductor != NULL ) /* it's not... */
while( conductor->next != NULL ) /* it's not, conductor->next = node1, because root->next = node1, and conductor = root */
conductor = conductor->next; /* in makes conductor point node1 (the first time through) */```
That loops until conductor points at node2, because at that point node2->next is NULL. So this loop finds the last node in the list.
Code:
`if(conductor = NULL) {`
That's wrong though. = assigns, == compares.

Quzah.

3. That's what I thought; It cycles thru the list until it reaches the last node. And I have to set that last node or the dummy node to null so it stops. Otherwise it might point to a random memory address. I just wasn't sure because I only had one node setup. But I guess the way that worked was if it did reach the last node it added one on the end. As for the equals operator....I program on my iPhone and it's so easy to miss something that small! But thank you Quzah

4. Originally Posted by Annonymous
I program on my iPhone
Why do that to yourself?

5. Why do that to myself, you ask. Well, I don't have a computer or a laptop. So I ported a C compiler to my iPhone 4. The small screen is a pain in the ass but it's better then nothing!

6. Originally Posted by Annonymous
Why do that to myself, you ask. Well, I don't have a computer or a laptop. So I ported a C compiler to my iPhone 4. The small screen is a pain in the ass but it's better then nothing!
Good lord man... for 4 months fee for that stupid phone you could buy a brand new laptop!

7. Originally Posted by CommonTater
Good lord man... for 4 months fee for that stupid phone you could buy a brand new laptop!
Yeah but that would be 4 uncool months!

Quzah.

8. Originally Posted by quzah
Yeah but that would be 4 uncool months!
Quzah.
Never owned a cellphone... never even talked on one... Won't allow them in my house.
When people come over, the phone gets turned off and sits in a basket near the front door.

9. Originally Posted by CommonTater
Never owned a cellphone... never even talked on one... Won't allow them in my house.
When people come over, the phone gets turned off and sits in a basket near the front door.
Do you also insulate your house with tinfoil to make sure the aliens can't "read your thoughts"?

10. Originally Posted by AndrewHunter
Do you also insulate your house with tinfoil to make sure the aliens can't "read your thoughts"?
No of course not... our name is not "Hunter"... (Gees, some people!)

We just took a decision amonst ourselves that we were sick and tired of people coming over to visit, eating my smarter half's excellent food, while spending most of their time with the cursed phone glued to their ears. If they can't be without it for a couple of hours to actually be present when visiting, they aren't the kind of people we want in our home.

11. Originally Posted by CommonTater
No of course not... our name is not "Hunter"... (Gees, some people!)
Lol....touche sir.

Originally Posted by CommonTater
We just took a decision amonst ourselves that we were sick and tired of people coming over to visit, eating my smarter half's excellent food, while spending most of their time with the cursed phone glued to their ears. If they can't be without it for a couple of hours to actually be present when visiting, they aren't the kind of people we want in our home.
I do agree, with cell phones came an apparent lack of etiquette that continues to amaze me.

12. Originally Posted by AndrewHunter
Lol....touche sir.
I do agree, with cell phones came an apparent lack of etiquette that continues to amaze me.
Especially when you spend 70 bucks putting on a real nice dinner and half your guests are physically present but not really there. We decided to label it "Cyberfreeloading" and put an end to it. The sole exception being an EMS worker who is sometimes on call and he only gets a pass when he's *actually* on call.

We also turn off the ringers on our landlines when guests come over...

Odd thing... without the phones, texts and tweets constantly interrupting us, we've actually managed to have some pretty good conversations!

Next on the list... Board games!

13. Originally Posted by AndrewHunter
Do you also insulate your house with tinfoil to make sure the aliens can't "read your thoughts"?
I would totally build a faraday cage into the walls of my house if I was building a new one. Not even joking.

Quzah.

14. Originally Posted by quzah
I would totally build a faraday cage into the walls of my house if I was building a new one. Not even joking.
I'm with you! When my parents re-roofed recently, they had a radiant barrier put on the sheathing to help insulate against heat. Basically it's a layer of foil on the bottom of the roof. Then the TV antenna, which used to hide in the attic, stopped receiving any signal, and had to be remounted on top of the roof. Faraday cage and thermal insulation all in one! I wonder if you can get that stuff for your walls. But what about the doors and windows?

15. Originally Posted by anduril462
I'm with you! When my parents re-roofed recently, they had a radiant barrier put on the sheathing to help insulate against heat. Basically it's a layer of foil on the bottom of the roof. Then the TV antenna, which used to hide in the attic, stopped receiving any signal, and had to be remounted on top of the roof. Faraday cage and thermal insulation all in one! I wonder if you can get that stuff for your walls. But what about the doors and windows?
Same insulation as the attic under the siding, Metal doors (harder to break in), wire woven copper impregnated glass (also shatter proof), ground straps everywhere all connected to copper grounding rods every 8 feet and driven 10 feet into the ground... (For a practical example, watch "Enemy of the State".)

"Golllllleee Martha, I feel so much better since those Martian mind rays stopped getting in here...."

ROFL... It's a paranoid fool's wet dream!