Why and when do we initialize a variable to 0? [closed]

I'm a 2nd year undergrad pursuing CS hons and i still struggle with the basics of basics so if anyone can help me with my silly questions pls feel free. I'll be most grateful :-) Currently learning C++ but you can explain the question in general. I just don't understand how it works. So far all i get is that to store a value without affecting the default elements we initialize a variable to 0 for eg: max = 0?? I came up with this question while practicing a question to find the largest elements in an array.

Why and when do we initialize a variable to 0? [closed]

I'm a 2nd year undergrad pursuing CS hons and i still struggle with the basics of basics so if anyone can help me with my silly questions pls feel free. I'll be most grateful :-)

enter image description here

Currently learning C++ but you can explain the question in general.

I just don't understand how it works. So far all i get is that to store a value without affecting the default elements we initialize a variable to 0 for eg: max = 0?? I came up with this question while practicing a question to find the largest elements in an array.