You can assign values to character arrays that way. Do an internet search for the functions strcpy() and strncpy().
strcpy()
strncpy()