Hacker News new | ask | show | jobs
by nitrogen 4383 days ago
Yes, you can. You can use it to create an approximation of named parameters, because struct members that don't have an initializer will default to zero. It's still not nearly as compact as, say, Ruby, but for C it's pretty awesome and fast.
1 comments

That's interesting. You know you can pass structs by value, too, so I'm not sure how necessary it is to take the address.
It can be useful for an API that expects pointers for whatever reason.