Exforsys

Online Training

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


Go Back   Exforsys > Programming Talk > C and C++

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2007, 07:15 AM
Senior Member
 
Join Date: Apr 2006
Posts: 122
rachelle is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-28-2007, 04:27 PM
Senior Member
 
Join Date: Apr 2006
Posts: 162
sammy is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Icon Programming Language FAQ icon-project@cs.arizona.edu Tech FAQ 0 06-01-2004 04:00 AM
Icon Programming Language FAQ icon-project@cs.arizona.edu Tech FAQ 0 05-01-2004 04:00 AM
comp.lang.eiffel Frequently Asked Questions (FAQ) Franck Arnaud Tech FAQ 0 04-17-2004 08:27 AM
comp.constraints FAQ (Part 1 of 1) pse@cs.unh.edu Tech FAQ 0 04-17-2004 08:23 AM


All times are GMT -4. The time now is 05:37 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.