Why write a comment when creating a console application?

... defines the entry point for the console application

?

    1 answer 1

    Comments are not processed at all by the compiler, so you can safely write programs without any comments at all. Including without it, given by you.

    If you are sure that in a couple of years, remember what your program did and why it was written at all ...

    • Why, then, when using a console application template in Visual Studio this comment is automatically added? - qwerty
    • @qwerty For beginners, for example. As a reminder :) It does not carry any functional load. - Harry