摘要:
It's not clear if it's legal or portable, but it is rather popular.#include #include struct line { int length; char contents[]; // Flexible array member};int main(){ int this_length = 20; struct line* this_line = (struct line*) malloc(sizeof(struct line) + sizeof(char) * this_length); this_l 阅读全文