How do you directly initialize a char array within a struct without memcpy, strcpy, or {…}?

后端 未结 0 1762
猫巷女王i
猫巷女王i 2021-02-05 08:33

Here\'s an example to clarify what I mean:

// A struct with a char array
struct StructA
{
   char value[6];
};

char Initializer[6] = "Hello";

// This          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题