These are some of the concepts we often tend to overlook and do not bother much about. Unknowingly, we can introduce serious bugs in the code. Also, most of the competitive programming challenges will always have some of the test cases judging the candidate's knowledge of these concepts. Examples are…