pointer & reference question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Wavelet

    #1

    pointer & reference question

    I had one function to access string array. I don't know to
    write it to make if functionable. BTW,the string will be
    access (read only) in funtion.

    Now I use:
    print_occur_arc hive_files(char argv[][])

    Can I use:
    print_occur_arc hive_files(char *argv [])

    or
    print_occur_arc hive_files(char & *argv[])

    I like to use reference if possible since it won't need decompress
    the -.

    --Thanks.

  • T.M. Sommers

    #2
    Re: pointer & reference question

    Wavelet wrote:
    I had one function to access string array. I don't know to
    write it to make if functionable. BTW,the string will be
    access (read only) in funtion.
    >
    Now I use:
    print_occur_arc hive_files(char argv[][])
    Won't work. You have to give the width of the array.
    Can I use:
    print_occur_arc hive_files(char *argv [])
    Yes.
    or
    print_occur_arc hive_files(char & *argv[])
    >
    I like to use reference if possible since it won't need decompress
    the -.
    C doesn't have references.

    --
    Thomas M. Sommers -- tms@nj.net -- AB2SB

    Comment

    Working...