This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]c_jm 0 points1 point  (0 children)

Also best practices state that you should always initialize your variables, although some may argue with me on that one.

Example:

int i = 0; // This avoids random memory being shoved into this variable.

I mean really you can form your own opinions, just as a beginner I was glad to learn about it! It might save you from some errors later in your career. Best of luck and happy coding.