What is a char* declaration in arduino?

arduino, char

Solution

The * (Asterisk) indicates the variable is a pointer. As for a small example:

int x = 0;
int *y = &x; //y is pointing to x
const char* myText = "Text";

You might however be interested in learning a bit more about what pointers are.

Problem

What would be a declaration like`char *song;` What does the * does? Is it an array, a pointer or something else?

Original source

Related problems