Two dimensional array Question

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

    #31
    Re: Two dimensional array Question

    On May 11, 7:07 pm, mdh <m...@comcast.n etwrote:
    >
    int main (int argc, const char * argv[])
            {
    Did you throw the const in just to annoy people? Is that "signature"
    properly documented on your system? How many other systems do you
    think will support it?

    Comment

    • pete

      #32
      Re: Two dimensional array Question

      mdh wrote:
      >You attempt to pass the non-strings when printf() is expecting strings.
      >Your program now exhibits undefined behavior. Nothing else about it
      >will tell you very much.
      >>
      >
      >
      Thanks Brian...I think I am beginning to understand this.Not quite
      there yet...but getting closer!! Next onto function pointers!!!
      A char arr[3] = "One";
      B char arr[] = {'O','n','e'};

      C char arr[4] = "One";
      D char arr[] = {'O','n','e','\ 0'};
      E char arr[] = "One";

      Array definitions A and B, can be used interchangeably .
      Array definitions C, D and E, can be used interchangeably .

      --
      pete

      Comment

      Working...