Search:

Type: Posts; User: ph5

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    738

    Thanks

    Thanks
  2. Replies
    2
    Views
    738

    Help with void pointer

    Hi,

    As part of my ongoing c programming education, I have written a program to use void pointers in a function, however, I am experiencing a strange issue for which I would appreciate some...
  3. Replies
    2
    Views
    1,944

    Hi, it was the additional brackets that I had...

    Hi, it was the additional brackets that I had issue with, earlier in the program, I had compilation errors without them, clearly I must have done something wrong.

    Thanks for your assistance.

    ~P
  4. Replies
    2
    Views
    1,944

    Dereferncing Void Pointer

    Hi, so that I could understand void pointers I created the following program:



    #include <stdio.h>
    #include <string.h>

    int main(void) {

    char word[] = "Zero";
  5. Thread: General Advice

    by ph5
    Replies
    3
    Views
    1,897

    Many Thanks for the advice, I'm still learning C...

    Many Thanks for the advice, I'm still learning C so this was a very good example of how powerful C is and just how easy it is to get things wrong.

    I have just one question: Why did you increase...
  6. Thread: General Advice

    by ph5
    Replies
    3
    Views
    1,897

    General Advice

    Hi,

    I recently wrote the following program to convert decimal numbers into binary numbers, the program works fine, however, my question is based around the prebit() function:
    Is this good...
  7. Thread: Issue with pointer

    by ph5
    Replies
    6
    Views
    1,370

    I can see what I've done now. I've changed as you...

    I can see what I've done now. I've changed as you said and it works, many thanks for your assistance.
  8. Thread: Issue with pointer

    by ph5
    Replies
    6
    Views
    1,370

    Issue with pointer

    As per your comment about the ascii chart (thank you), I have changed the code as follows:




    *(memory+0) = 49;
    *(memory+1) = 57;
    *(memory+2) = 55;
    *(memory+3) = 49;
  9. Thread: Issue with pointer

    by ph5
    Replies
    6
    Views
    1,370

    Issue with pointer

    I am still learning the C programming language and trying out various
    things with pointers, so please bare with me.

    I have written a program which allows me to view the memory contents
    using a...
  10. Replies
    4
    Views
    1,265

    Sorted. Many Thanks to all for the advice, I've...

    Sorted. Many Thanks to all for the advice, I've also seen a pratical example of a pointer to a pointer. Excellent.

    Thanks
    ~P
  11. Replies
    4
    Views
    1,265

    Help with pointer issue

    Firstly, I'm new to C, so please bear with me.

    I'm trying to increment a pointer, the following code works correctly with the
    following output:

    before number = [0], address = [0xbfec32b0}...
Results 1 to 11 of 11