Results 1 to 2 of 2

Thread: const char *

  1. #1

    Thread Starter
    Addicted Member jmiller's Avatar
    Join Date
    Jul 2002
    Location
    University of Michigan
    Posts
    238

    const char *

    how does this statement work? if you have const char *a, is a pointer? if so, what address does it point to?

  2. #2
    Frenzied Member
    Join Date
    Jul 2002
    Posts
    1,370
    const char * means whatever char array is pointed to is readonly

    standard uses for const char * ---
    Code:
    const char *a="some string value";
    
    // Or in a function for arguments that are readonly
    void foo(const char *a){
    
    
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width