Re: another const question

Discussion in 'C Programming' started by lawrence.jones@eds.com, Jun 30, 2003.

  1. Guest

    Felix Zaslavskiy <> wrote:
    >
    > given :
    >
    > char c[] = "hello";
    >
    > Can one say that c is type of const char * ?


    Yes, but one would be wrong. The type of c is (char [6]).

    -Larry Jones

    That's the problem with nature. Something's always stinging you
    or oozing mucus on you. -- Calvin
     
    , Jun 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    11
    Views:
    1,130
  2. Javier
    Replies:
    2
    Views:
    593
    James Kanze
    Sep 4, 2007
  3. 0m
    Replies:
    26
    Views:
    1,148
    Tim Rentsch
    Nov 10, 2008
  4. fungus
    Replies:
    13
    Views:
    907
    fungus
    Oct 31, 2008
  5. Replies:
    2
    Views:
    550
    Andrew Koenig
    Feb 9, 2009
Loading...

Share This Page