
- Forum
- Programming Talk
- C and C++
- Guidelines for Improvement in C programming
Guidelines for Improvement in C programming
This is a discussion on Guidelines for Improvement in C programming within the C and C++ forums, part of the Programming Talk category; I have learnt to do some medium to little advanced level C programming. Now I want to refine my learning ...
-
Guidelines for Improvement in C programming
I have learnt to do some medium to little advanced level C programming. Now I want to refine my learning and want to know tips and guidelines a C programmer has to follow to improve their coding style. Can someone give the hints, tips and guidelines a C programmer has to follow so that their code looks good in terms of appearance as well as perform efficiently in terms of
functionality and usage.
-
There are lot of hints, tips and guidelines a C programmer has to follow so that their code looks good in terms of appearance as well as perform efficiently in terms of functionality and usage. I have given below some of the points which came to my point now.
* In terms of documentation one must take care that there program is intended and documented well with comments written at appropriate places which would help the program for future maintenance.
* Prototypes names can be left for future maintenance and usage.
* Function names, variable names need to follow naming convention which would help to refer and maintain program easily even for future needs.
* If the programmer has need for making use of counters in their c program it is better to take care that counter should not have global scope.

Reply With Quote





