Best coding techniques

Home Forums C Programming Best coding techniques

This topic contains 0 replies, has 1 voice, and was last updated by  niklaesh 11 years, 9 months ago.

  • Author
    Posts
  • #1929

    niklaesh
    Member

    hello,
    what do u think is the best coding technique we should adopt?
    I have two exampes here. please comment on them.

    Few things to consider here.
    1: initializing the variable and declaring at the same time.
    2: adding the curly braces after the expression
    3: indenting the code
    4: adding the curly braces at the new line.

    Please comment.
    Thanks

You must be logged in to reply to this topic.

0 Shares
Share
+1
Tweet
Share
Stumble