So if i did the threaded approach with pointers to next and previous that would still be of a doubly linked list type technically?
Type: Posts; User: bazzano
So if i did the threaded approach with pointers to next and previous that would still be of a doubly linked list type technically?
I have done pointers to both previous and next in the struct but i am unsure as to why you need a tail pointer in a struct when in a doubly linked list you just need next and previous.
Hi guys just a question about doubly linked lists... Do you have to declare a tail pointer in a struct to create a doubly linked list? If not when would you if you do?
Sorry could someone explain bit more about bit shifting as i dont fully understanf this
Hey guys what would be the easiest way of converting binary to ascii?
im Hi im trying to understand this sorting program and im not sure why in this example
in the while loop there checking for NULL twice in the while condition
#define SIZE 81 /*string length...
Hey guys just wondering if u know how to sort an array of strings without using qsort and all of those. I dont get how all the swapping works and so on?
Im writing that in Ansi C compiler. Its line 44 which is causing the cast error not sure why?
gcc -ansi -Wall -pedantic -o filename filename.c
Yehhhh this was a tutorial question outta the book we had to compile it without errors crappy variable names
so i dont get why it still wnt compile without errors?
Hey guys im gettin an assignment makes integer from pointer without a cast?
im trying to store anInt into the data
new->data = anInt;
ahhh k kewl
putchar(**(wp+1));
Hey guys with the above code why does that get the character 'c' from "cat" i dont understand the pointer to another pointer?
int main (void)
{
char words[5][8] =...
Hey guys im trying to add numbers together which get stored in the array how can i do that?
Iv done that below but i get junk value when it gets printed out?
#include <stdio.h>
#include...
ohhh okk thnks
Can i also ask why you need void in the printf statement?
printf(" y = %p\n", (void*)y);
So does that int z = (*x+2)
x is alread pointing to the zeroth element in the array but because its a * its getting the value of x which is 10. Then adding 2 to ten.
And not incrementing where...
What i dont get is how you got 12 for Z
Thanks mate
Could somone elaborate more please?
So if i have
int [5] = {10,20,30,40,50}
if i say
(x + 2) would that give me 30
how about if its this
double *a[12] would that be a pointer to a pointer of type double because its an array
Hey guys if i declare
int *px;
does that mean px is a pointer to an int
Hey guys im trying to return the expiry time for a hypathetical car park meter using this program. The parking costs 1.10 per hour im trying to write this function to test this question.
so if i...
Hey guys am i correct in saying that the -> is only used when
you have a pointer to a struct and when there is not a pointer to a struct you use a dot?
Hi how would i return the value of word in the count words function to words in the main function im returning the wrong value. Am i returning it correctly
#include <stdio.h>
#include...