Exforsys
+ Reply to Thread
Results 1 to 2 of 2

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 ...

  1. #1
    rachelle is offline Member Array
    Join Date
    Apr 2006
    Answers
    97

    Thumbs up 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.


  2. #2
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    145
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...