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 0.0
Keep a cool head when programmingSentralia 6.8
Keep fit to program betterLuna Man 6.9
LogicHardi Pertel 6.5
logical error on divisionM.Kumaran 7.5
Long variable namesCarl 8.2
loop conditionKrishna 6.4
Make backupsVox 6.0
Make libraries for yourselfValseedian 6.3
Make pointer and reference arguments constAkshay 8.5
match the out side world ideas to logical designinmady 5.3
Member Functions are inline by default (C++)Ash 5.7
merqery in cjeevan 0.0
Modifying const variablesWiro Sableng 5.8
Multiply rather than DivideReese Moore 7.0
Never do unary minus on sizeofVaibhav 7.1
Never return a non-const pointer to a data member!hussain hani 3.0
One instruction per lineLudovic Flender 5.2
Operator Associativity and HierarchyAvinash 5.8
Operator precedence shortcutsai shanker 4.3
Passing a pointer to a functionIrfaan Kamo 7.7
Passing array elements to functionsUmer khan 7.9
Pointer arithmetic hackVivek Ahlawat 6.3
Pointer arithmetic trickinessvishesh jain 6.0
Pointer Memory allocationKrishnamoorthi 6.8
Pointer Tips :-)Jatin Gandhi 6.8
pre & post increment & decrement operators jay 5.9
Prefer pre-increment and pre-decrementKarl 6.0
Private type in public class scopeIgor 0.0
Programming TipsJatin Gandhi 6.3

Next 30
Previous 30

Help your fellow programmers! Add a tip!