次の点を考慮してください。
struct Foo
{
char c;
int i;
};
void Bar(void)
{
struct Foo f = {0}; // use zero initializer
// do some stuff
f = (struct Foo) {'h', 1}; // copy different data into f, is this dangerous?
}
上記のキャストは危険と見なされますか? これがスタイルいいの?