Search:

Type: Posts; User: bazzano

Page 1 of 11 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    4,067

    So if i did the threaded approach with pointers...

    So if i did the threaded approach with pointers to next and previous that would still be of a doubly linked list type technically?
  2. Replies
    15
    Views
    4,067

    I have done pointers to both previous and next in...

    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.
  3. Replies
    15
    Views
    4,067

    doubly linked list tail pointer in struct

    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?
  4. Replies
    3
    Views
    1,266

    Sorry could someone explain bit more about bit...

    Sorry could someone explain bit more about bit shifting as i dont fully understanf this
  5. Replies
    3
    Views
    1,266

    binary to ascii

    Hey guys what would be the easiest way of converting binary to ascii?
  6. Thread: while loop

    by bazzano
    Replies
    1
    Views
    1,048

    while loop

    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...
  7. Replies
    4
    Views
    1,475

    sort array of strings

    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?
  8. Thread: cast error

    by bazzano
    Replies
    6
    Views
    1,034

    Im writing that in Ansi C compiler. Its line 44...

    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
  9. Thread: cast error

    by bazzano
    Replies
    6
    Views
    1,034

    Yehhhh this was a tutorial question outta the...

    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?
  10. Thread: cast error

    by bazzano
    Replies
    6
    Views
    1,034

    cast error

    Hey guys im gettin an assignment makes integer from pointer without a cast?
    im trying to store anInt into the data




    new->data = anInt;
  11. Replies
    2
    Views
    715

    ahhh k kewl

    ahhh k kewl
  12. Replies
    2
    Views
    715

    pointer to a pointer

    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] =...
  13. Thread: array

    by bazzano
    Replies
    2
    Views
    762

    array

    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...
  14. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    ohhh okk thnks

    ohhh okk thnks
  15. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    pointer

    Can i also ask why you need void in the printf statement?




    printf(" y = %p\n", (void*)y);
  16. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    So does that int z = (*x+2) x is alread...

    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...
  17. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    pointers

    What i dont get is how you got 12 for Z
  18. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    Thanks mate

    Thanks mate
  19. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    Could somone elaborate more please?

    Could somone elaborate more please?
  20. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    So if i have int [5] = {10,20,30,40,50} ...

    So if i have



    int [5] = {10,20,30,40,50}


    if i say
    (x + 2) would that give me 30
  21. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    how about if its this double *a[12] would that...

    how about if its this

    double *a[12] would that be a pointer to a pointer of type double because its an array
  22. Thread: pointers

    by bazzano
    Replies
    18
    Views
    1,816

    pointers

    Hey guys if i declare



    int *px;


    does that mean px is a pointer to an int
  23. Thread: time struct

    by bazzano
    Replies
    3
    Views
    1,944

    time struct

    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...
  24. Replies
    2
    Views
    1,020

    struct operators

    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?
  25. Replies
    1
    Views
    709

    return function

    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...
Results 1 to 25 of 256
Page 1 of 11 1 2 3 4