??? 02/05/09 09:42 Read: times |
#162088 - Array of pointers to characters Responding to: ???'s previous message |
A note here:
char *array[8]; The variable "array" is not a pointer to an array of 8 characters. The variable "array" is an array of 8 pointers - each pointing to a character. char* charlie = "charlie"; // a pointer to an unnamed text string containing "charlie" char benny[] = "benny"; // an array containing the text "benny" char *array[3]; // an array of three pointers to characters. array[0] = charlie; array[1] = benny; array[2] = NULL; |
Topic | Author | Date |
dynamic parameters in an I2C definition possible? | 01/01/70 00:00 | |
how about | 01/01/70 00:00 | |
trans_byte buffer? | 01/01/70 00:00 | |
something like: | 01/01/70 00:00 | |
Updated, but errors on my part | 01/01/70 00:00 | |
This | 01/01/70 00:00 | |
I must be stuck on stupid | 01/01/70 00:00 | |
I Think it is this | 01/01/70 00:00 | |
Array of pointers to characters | 01/01/70 00:00 | |
Try this code | 01/01/70 00:00 | |
Works great!...One question though | 01/01/70 00:00 | |
The warning is real | 01/01/70 00:00 | |
Not exactly as I coded | 01/01/70 00:00 | |
Update......Problem solved![]() | 01/01/70 00:00 |