Y
Hacker News
new
|
ask
|
show
|
jobs
by
xsmasher
4913 days ago
That's a rule of C; stack vars are not initialized. Same thing would happen with an int.
Member variables of a class are set to zero by (init or alloc? can't remember.)