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)
Declaration of abstract class in c++Ali Nawkhas Murad 5.9
think before you codeTimofei Gerasimov 5.9
Prefer pre-increment and pre-decrementKarl 5.9
The power of scanf()Joanna 5.9
Keep fit to program betterLuna Man 5.9
Standard Loop ProgressionDazzle 5.9
assert() yourself!Kevin Lam 5.9
Keep a cool head when programmingSentralia 5.9
Clever ways to avoid using if statementsA. Karthick Pandia Samy 5.9
pre & post increment & decrement operators jay 5.9
Using _strtime and _strdate to get the timeAli Jafar 5.9
Better coding style for comparisonnids 5.9
One instruction per lineLudovic Flender 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
Modifying const variablesWiro Sableng 5.9
Pointer Memory allocationKrishnamoorthi 5.9
Differences between class and structAli Nawkhas Murad 5.9
clean up after cin (C++)Major_Small 5.9
Better enumsBrent 5.9
Don't use strlen in a loop condition.anonytmouse 5.8
Be careful about array size when u are using strcpBhushan Verma 5.8
Turn on all compiler warningsMaragato 5.8
Write it out on paperrakesh kumar 5.8
Converting numbers to StringsWebmaster 5.8
difference between float and doubleankit panwar 5.8
Fast multiplicationJean-François Geyelin 5.8
Avoid memory wastageArthi 5.8
High performance loopingRachana 5.8

Next 30
Previous 30

Help your fellow programmers! Add a tip!