Ah, that makes sense to me! Thank you!
Type: Posts; User: kbrandt
Ah, that makes sense to me! Thank you!
So what is it doing then?
dog = Pointer to NULL
so dog->next is....?
The following code seems to work, but I don't understand why.
The line:
zip = &dog->next;
Looks to me like it is de-referencing 'next' member of NULL, which doesn't make a whole lot of sense. Is...
Found it:
temp_word = temp_conc->next_word;
//should be:
temp_word = temp_conc->next_word->next_word;
Since the first value is never actually initialized.
I am learning c and this program is for me to practice implementating single linked lists. I have run into a block.
In my program I am getting a segfault in the
printf("%s\n",...
I have been teaching myself c. This little program parsed out numbers in a file, and prints those divisible by 3. If anyone is willing, can you point out any thing looks like it wrote it in a...
matsp -
I get it now, Thank you for your help and taking the time to help out someone just starting.
-Kyle
So to pass the number of elements in the array, should that just be another argument to the function like this?
void flts_from(char dept_aport[4], flight flights[], int size) {
int counter;...
With the following, what is the proper way to counter of all the entries in a struct for the exit condition of a for loop (sizeof(flights)..? Also, if there is anything else wrong with what I am...
That works perfect, thank you everyone... But since I am clearly just learning c, what is a member array? :-) (Familiar with perl, python, and shell -- so know what an array is...)
If I do that I get: warning: missing braces around initializer
Hi All,
With the following code, I would change my printList function to print each field only if it has been set to something? Or is this not possible and I would have to initialize every field...