[c] Strings as arrays, as pointers
void PrintLabel(char the_label[])
{
printf("Label: %s\n", the_label);
}
OR
void PrintLabel(char *the_label)
{
printf("Label: %s\n", the_label);
}
Ref :
http://www.cs.bu.edu/teaching/c/string/intro/
http://www.cs.bu.edu/teaching/
沒有留言:
張貼留言