char* / char []/ char

This is a discussion on char* / char []/ char within the C Programming forums, part of the General Programming Boards category; I would like to know when to use char*, char[] and char. I got confused with those things. If you ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    53

    Unhappy char* / char []/ char

    I would like to know when to use char*, char[] and char.
    I got confused with those things. If you could give some examples for each that will be good.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Read the whole thing: Arrays and Pointers


    Quzah
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    53
    can you give more details?

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You read all twenty-some of those points and you still need help? With what exactly?


    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by p595285902 View Post
    can you give more details?
    Best advice ... this time actually go and read the link provided...
    If you don't understand it... READ IT AGAIN.

  6. #6
    Registered User
    Join Date
    Nov 2010
    Posts
    53
    Quote Originally Posted by quzah View Post
    You read all twenty-some of those points and you still need help? With what exactly?


    Quzah.
    where are those points?

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Each question on the link I gave you has a number by it. That number is a link. Click it.


    Quzah.
    Hope is the first step on the road to disappointment.

  8. #8
    Registered User
    Join Date
    Nov 2010
    Posts
    53
    oh i see it the red words u first posted

  9. #9
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Yeah this forum doesn't underline links for some reason.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. char compile error
    By dallypost in forum C Programming
    Replies: 10
    Last Post: 03-18-2010, 03:54 PM
  2. Replies: 12
    Last Post: 08-11-2008, 11:02 PM
  3. get keyboard and mouse events
    By ratte in forum Linux Programming
    Replies: 10
    Last Post: 11-17-2007, 04:42 PM
  4. The Interactive Animation - my first released C program
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 48
    Last Post: 05-10-2007, 02:25 AM
  5. comparing fields in a text file
    By darfader in forum C Programming
    Replies: 9
    Last Post: 08-22-2003, 08:21 AM

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