char *path[] - an array of pointers. char *path is the only pointer.
How can I create a pointer to a char, not a string?
A 'string' in C is just a pointer to a char that has an agreement to start a sequence of characters that ends with '\ 0'. You can declare a pointer to one char in the same way, you just need to take care to use it according to the data it actually points to.
This is similar to the concept that a char in C is an integer with a fairly limited range. You can use this data type as a number, as a true / false value, or as a character that should appear as a character at some point. Interpretation of what the char variable corresponds to the programmer.
Without first class, a full-fledged string data type is what sets C apart from most other high-level languages. I will let you decide for yourself whether it is distinguished by a good or bad way.
source share