Undeclared bool is false?

In the timer code, a bool is defined with no value

public bool isAnsweringQuestion;

In this case the isAnsweringQuestion value is not yet set. Does it always default to false?

1 Like

Hi,

You are right. The default value of bool is false. See here:


See also:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms