I had declared a Boolean variable bool abc; in a class and thought that it would be false by default. An if condition in my program, if (abc),
bool abc;
if (abc)
Yes. You need to either do bool x=false or bool x(false). Primitives that are not initialized may have any value.
bool x=false
bool x(false)
See Wikipedia