c string basics, why unassigned? -


I'm trying to learn the basics, I think that would declare a four [] and assign a string . Thanks

  integer size = 100; Four letters [size]; Str = "\ x80 \ xbb \ x00 \ xcd";  

Issue "Inconsistent Type in Assignment" returns what is wrong? Thanks

You can use the string for an array of all start , But you can not assign an array of four (you can specify any other array). Otoh, you can do assign an indicator, so the following will be allowed:

  char * str; Str = "\ x80 \ xbb \ x00 \ xcd";  

Comments