Search:

Type: Posts; User: ladesidude

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    4,622

    Thank you very much for clearing that up.

    Thank you very much for clearing that up.
  2. Replies
    3
    Views
    4,622

    simple fork() program

    folks,

    I am trying to understand forking. I know fork() is multithreading or multitasking (from wikipedia). I have the following program that I am running using cygwin:



    #include <stdio.h>...
  3. Replies
    16
    Views
    21,106

    OK, so if they are pointers of type int, they are...

    OK, so if they are pointers of type int, they are of the same type, but because they have different values, the == will fail. Am I correct in assuming this?
  4. Replies
    16
    Views
    21,106

    I ran this code: if(a1 == a2)...

    I ran this code:


    if(a1 == a2)
    printf("Equal %i",a1==a2);
    else
    printf("Not Equal %i\n", a1 != a2);


    and it came back saying not equal, but this doesnt prove that they are of the same...
  5. Replies
    16
    Views
    21,106

    How can I prove that a1,a2 and a3 are of the same...

    How can I prove that a1,a2 and a3 are of the same type?
  6. Replies
    16
    Views
    21,106

    To really dumb this down, a1, a2 and a3 are of...

    To really dumb this down, a1, a2 and a3 are of the same type while int2ptr is different from a1?
  7. Replies
    16
    Views
    21,106

    So, is it safe to say that a1, a2 and a3 are of...

    So, is it safe to say that a1, a2 and a3 are of the same type as they are on the heap?
  8. Replies
    16
    Views
    21,106

    Comparing Pointer types in C

    Hi,

    I have this program in C, and have commented each line as per my understanding. At the end, I have some questions which I havent been able to understand. Any help would be appreciated.



    ...
  9. Replies
    2
    Views
    1,943

    Lets say that we forget -1 for a moment, what I...

    Lets say that we forget -1 for a moment, what I would like to understand is why would char** h_aliases accept an integer as the last argument and not a string?
  10. Replies
    2
    Views
    1,943

    gethostbyname C function

    Hi all,

    I need to understand this point, so perhaps someone would be able to help. The following code:



    struct hostent {
    138 char* h_name; ;; official name
    139 ...
Results 1 to 10 of 10