What does int() do in C++? - Stack Overflow
https://stackoverflow.com/questions/17131911/what-does-int-do-in-c
webJan 2, 2021 · int() is the constructor of class int. It will initialise your variable a to the default value of an integer, i.e. 0 . Even if you don't call the constructor explicitly, the default constructor, i.e. int() , is implicitly called to initialise the variable.
DA: 28 PA: 33 MOZ Rank: 91