I am trying to create a pointer to a char and pass it to function as a char*.
here is my code to define the char array
it seems the compiler does not recognize the end of the string
because the function display does not show a correct string
char myword[] = { 'H', 'e', 'l', 'l', 'o', '\0' };
char str[] = {'M','i','k','e',' ','s','m','i','t','h','\0'};
char str2[] = "Dragic\0";
char* pname=&str[0];
char* pteam=&str2[0];
Display(myword);