0
Variable initialization in c++
I know that in C you need to initialize while declearing. Does it also apply to c++?
1 Odpowiedź
+ 1
No. You don't need to.
You only initialize a variable if the next immediate action you take on that variable is reading the value it contains.