Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个关于动态结构定义的小问题。在 ANSI-C 下声明结构定义时,是否可以使用“字符串”变量作为结构标识符,如下所示?
*(a_string_var) = "username"; struct user *(a_string_var);
不,C 中的所有声明都必须使用静态的内联标识符。