I'm currently learning C and am having a bit of trouble understanding how to declare a string. I understand that in C, strings are simply arrays of characters. I've seen two different ways for declaring a string:
char[] some_string = "hello world";
and
char *some_string = "hello world";
When should each of these be used? Most code I've seen uses the char *some_string syntax, but I'm sure that there's a reason why. Thanks.