C and C++ Programming Tips

Welcome to Cprogramming.com's repository or tips for programming in C and C++. Peruse the archives or add your own tips for others to use!

Sort by clicking on any of the headers.

TipAuthorRating (votes)
Instantiate a singleton class i.e no more than one instance possibleAnjan Ghose 6.8
Keep a cool head when programmingSentralia 5.6
Keep fit to program betterLuna Man 5.7
LogicN/A 5.7
logical error on divisionM.Kumaran 5.6
Long variable namesCarl 5.5
loop conditionKrishna 5.8
Make backupsVox 5.4
Make libraries for yourselfValseedian 6.1
Make pointer and reference arguments constAkshay 5.1
match the out side world ideas to logical designinmady 5.5
Member Functions are inline by default (C++)Ash 6.0
merqery in cjeevan 5.0
Modifying const variablesWiro Sableng 5.5
Multiply rather than DivideReese Moore 5.5
Never do unary minus on sizeofVaibhav 5.7
Never return a non-const pointer to a data member!hussain hani 5.2
One instruction per lineLudovic Flender 5.3
Operator Associativity and HierarchyAvinash 5.5
Operator precedence shortcutsai shanker 5.6
Passing a pointer to a functionIrfaan Kamo 5.5
Passing array elements to functionsUmer khan 5.5
Pointer arithmetic hackVivek Ahlawat 5.5
Pointer arithmetic trickinessvishesh jain 5.2
Pointer Memory allocationKrishnamoorthi 5.5
Pointer Tips :-)Jatin Gandhi 5.8
pre & post increment & decrement operators jay 5.4
Prefer pre-increment and pre-decrementKarl 5.5
Private type in public class scopeIgor 6.7
Programming TipsJatin Gandhi 5.6

Next 30
Previous 30

Help your fellow programmers! Add a tip!