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)
merqery in cjeevan 7.6
One instruction per lineLudovic Flender 7.5
Better enumsBrent 6.6
Declaration of abstract class in c++Ali Nawkhas Murad 6.5
Prefer pre-increment and pre-decrementKarl 6.4
Modifying const variablesWiro Sableng 6.3
Use ++ and --Subyraj P.S 6.3
Use STL containers instead of C arraysSang-drax 6.2
think before you codeTimofei Gerasimov 6.2
Pointer Memory allocationKrishnamoorthi 6.2
The power of scanf()Joanna 6.1
Clever ways to avoid using if statementsA. Karthick Pandia Samy 6.1
Comparisons in C\C++Nikitas Angelinas 6.1
Display Date and Time in C++Govind 6.1
Standard Loop ProgressionDazzle 6.1
Better coding style for comparisonnids 6.0
Keep a cool head when programmingSentralia 6.0
Keep fit to program betterLuna Man 6.0
assert() yourself!Kevin Lam 6.0
Pointer Tips :-)Jatin Gandhi 6.0
Using _strtime and _strdate to get the timeAli Jafar 5.9
clean up after cin (C++)Major_Small 5.9
loop conditionKrishna 5.9
Converting numbers to StringsWebmaster 5.9
pre & post increment & decrement operators jay 5.9
LogicHardi Pertel 5.9
Differences between class and structAli Nawkhas Murad 5.9
Don't use strlen in a loop condition.anonytmouse 5.9
difference between float and doubleankit panwar 5.9
Solve Any Compiler Error EasilyWajahat Karim 5.9

Next 30

Help your fellow programmers! Add a tip!