logoalt Hacker News

randomNumber7 • yesterday at 4:48 PM • 1 reply • view on HN

What happens when I put a variable of a struct type that contains a flexible array member on the stack?


Replies

uecker • yesterday at 5:53 PM

The array has size 0. In GNU C, you can initialize it and then it has a fixed size corresponding to the initializer.