characters and strings 
Author Message
 characters and strings

See annotations:

On Mon, 20 Nov 2000 23:42:17 -0500, Neal Weissman

Quote:

>consider:

>  char foo = 'a';

The single char foo is initialized with the letter a.
Quote:

>  char foo = "a";
syntax error

>  char foo = "abc";
syntax error

>  char foo[] = "abc";

foo is an array of 4 char initialized with a, b, c, and \0
Quote:

>  char *foo = "abc";

foo is a pointer to char initialized with the address of the
non-modifiable string literal.
Quote:

>please delineate the differences.

>and please respond to me personally, as well as posting to the ng.

Post here, read here.

Quote:

>many thanks.

>--neal weissman

<<Remove the del for email>>
--



Sun, 11 May 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. HowDoI: Remove NULL characters from string

2. Filter out unwanted characters from string

3. replace one character in string

4. null character in strings... strange behavior

5. Characters in strings

6. replacing characters in string

7. Characters of String

8. Removing Special Characters From Strings

9. Multi-byte characters and string matching

10. type convert from character to string

11. characters and strings

12. returning index # of first character in string ..etc

 

 
Powered by phpBB® Forum Software