Search:

Type: Posts; User: tabstop

Search: Search took 0.16 seconds.

  1. Replies
    12
    Views
    2,424

    Can't be done. That's what it means by "decaying...

    Can't be done. That's what it means by "decaying to a pointer" -- there is no way to get an array into a function -- either you pass a specific element of the array to the function (which can be...
  2. Replies
    12
    Views
    2,424

    If you want to modify some chars, you need to...

    If you want to modify some chars, you need to pass a pointer-to-char. An array name already is a pointer-to-char, so you're done.
  3. Replies
    12
    Views
    2,424

    char *foo; char bar[32]; In the above code,...

    char *foo;
    char bar[32];

    In the above code, then:
    foo is of type pointer-to-char
    bar is of type pointer-to-char (array names by themselves decay to pointers to their element)
    &foo is of type...
Results 1 to 3 of 3