From what I've read, the following two definitions do the same thing:
But what about when you want to define a string of a specific length, like this:Code:char str[] = "Example string"; char* str = "Example string";
Is it possible do this with pointer syntax? Or would I have do to something like this:Code:char str[20];
Code:char string[20]; char* str = string;