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)
Fast multiplicationJean-François Geyelin 6.7
Fastest raise to power.Ezzetabi 6.0
finding size of variable without using sizeof()Rajesh punia 5.2
Fix all compiler warningsrickey 6.2
Flowchartsayyapparaju 6.7
Free The Memory That You UseUdhaya Kumar.D 6.1
Full Abstract class/InterfaceRamakrishna 6.4
Get a copy of the standardThantos 5.7
getchar() returns an intRob 6.2
gets is dangerouscarl johnson 8.1
gets() is bad.Sean 6.0
Getting the size of an array with any datatypeSaddam Abu Ghaida 0.0
Give Proper Names to Your VariablesMaragato 5.4
Goto vs. Higher-level control structuresSean 5.7
High performance loopingRachana 6.8
In C++ a pure abstract base class is a contractMarty Corbett 7.9
Increment and decrement counters with rolloverLee Walker 2.3
increment and decrement on pointerRAJKUMAR 3.6
Indent your ProgramPrashant Sahay 5.5
initalization of objectsmohit dhawan 6.5
Initialise all variablesJia.Lu 6.2
Initialise all variables before useMounish 6.7
Keep a cool head when programmingSentralia 6.8
Keep fit to program betterLuna Man 6.8
LogicHardi Pertel 6.4
logical error on divisionM.Kumaran 7.5
Long variable namesCarl 7.8
loop conditionKrishna 6.4
Make backupsVox 6.0
Make libraries for yourselfValseedian 6.3

Next 30
Previous 30

Help your fellow programmers! Add a tip!