what is
char *something
?
What is the * for?
what is
char *something
?
What is the * for?
It makes something a pointer to a char
╔╗╔══╦╗
║║║╔╗║║
║╚╣╚╝║╚╗
╚═╩══╩═╝
Pointers hold memory addresses - so you can "point" to large or complex data structures without having to move around copies of the actual structure. There's a tutorial on this web site about them.