do c 2b 2b ints neeed to be initlaized

Solutions on MaxInterview for do c 2b 2b ints neeed to be initlaized by the best coders in the world

showing results for - "do c 2b 2b ints neeed to be initlaized"
Marwan
01 Oct 2018
1tldr; Yes, or you risk getting a random number as the starting value.
2
3For automatic variables:
4Some compilers might do it but the standard does not require it. A conforming implementation could leave them to be uninitialized garbage values.
5
6For static variables:
7They must be initialized to zero unless explicitly initialized otherwise.