What is the difference between coding standards and coding guidelines?

What is the difference between coding standards and coding guidelines..Please help me to understand...if possible give me example..

Thanks for your time in advance.. :)

Last updated:12/12/2019 1:25:20 AM

1 Answers

Nishi Tiwari
Nishi Tiwari

Coding standard refers to how developers write the code following different set of rules and guidelines set by organization. There are some coding standards regardless of any programming language like proper indentation, limited use of global, standard headers file used for modules, naming convention of local variables, global variables and functions and error returning values with exception handling convention.

Coding guidelines gives the suggestion or instruction regarding coding style for the betterment of readability and understandability of code as well as to maintain the code. Some guidelines are well documented, length of function or variables is not to be large, error messages should be given, not use goto statement etc.

Answer