Avoid Implicit int Declarations

The default type for missing declarations like the following is int:

 const k =0; //'int' type deduced; deprecatedstatic j =5;  //ditto

Though still supported by the C++ standard, this convention is now considered deprecated and hence – should be avoided. Instead, explicit type names should be used:

 const int k =0; static int j =5;  
Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

Recent Articles: