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

Next 30

Help your fellow programmers! Add a tip!