|
-
April 4th, 2009, 08:52 AM
#5
Re: string - char* mix and match??
Hello Muthuveerappan
 Originally Posted by Muthuveerappan
Its good to to know 2 basic things:
1) char is a built in data type - It stores as an array of characters terminated by '\0'. So always treat it like an character array.
I think it's good to clarify that char itself is not an array. It can only hold a single char. Not all char arrays are null terminated. I think what you're refering to is the C-style character strings (null terminated char array). Another good thing to keep in mind is that string literal is an array of const char.
Last edited by potatoCode; April 4th, 2009 at 08:54 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|