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

Next 30

Help your fellow programmers! Add a tip!