what is char *something

This is a discussion on what is char *something within the C Programming forums, part of the General Programming Boards category; what is char *something ? What is the * for?...

  1. #1
    Registered User
    Join Date
    Apr 2009
    Posts
    29

    what is char *something

    what is

    char *something

    ?

    What is the * for?

  2. #2
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    It makes something a pointer to a char
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  3. #3
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    Pointers hold memory addresses - so you can "point" to large or complex data structures without having to move around copies of the actual structure. There's a tutorial on this web site about them.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C++ ini file reader problems
    By guitarist809 in forum C++ Programming
    Replies: 7
    Last Post: 09-04-2008, 06:02 AM
  2. Sorting Linked Lists
    By DKING89 in forum C Programming
    Replies: 6
    Last Post: 04-09-2008, 07:36 AM
  3. code condensing
    By bcianfrocca in forum C++ Programming
    Replies: 4
    Last Post: 09-07-2005, 09:22 AM
  4. Passing structures... I can't get it right.
    By j0hnb in forum C Programming
    Replies: 6
    Last Post: 01-26-2003, 10:55 AM
  5. String sorthing, file opening and saving.
    By j0hnb in forum C Programming
    Replies: 9
    Last Post: 01-23-2003, 12:18 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21