Search:

Type: Posts; User: Samir Aguiar

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,252

    Now I get it. v is declared as an array of...

    Now I get it. v is declared as an array of pointers to char (char * v[]) while string is declared as an array of chars. I was passing to function contem v as a pointer to char and string as a char....
  2. Replies
    5
    Views
    1,252

    v is declared like this: char *v[10]; After I...

    v is declared like this:
    char *v[10];

    After I have added the [] to the second argument of the contem function I got only two warnings:
    warning: passing argument 2 of 'strcmp' makes pointer from...
  3. Replies
    5
    Views
    1,252

    Comparing string to arry of strings

    Hello there,

    I'm new to C programming and I have the following exercise to do:

    "Consider an array v[0, 1,..., (n-1)] whose elements are strings. Remember that, in C a string is just an array of...
  4. Replies
    3
    Views
    1,080

    I'm still confused with this part: "insert...

    I'm still confused with this part: "insert current node into third list". How should I do that?
    I mean, how would be the syntax for malloc to create a new node for each node of the source list? I...
  5. Replies
    3
    Views
    1,080

    Beginner's question with linked list

    Hello there, I'm new here and also new to C programming.

    I'm having trouble to do a exercise, where I'm supposed to create a function which receives two pointers for two linked lists and returns a...
Results 1 to 5 of 5