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)
Enums instead of const member variablesMotiram Patil 1.0
Error handling for newUpesh Jindal 5.2
Execute Mail Merge & Produce Multiple Word Documents in C# & VB.NETsherazam 0.0
Executing system commandsSean 5.6
fast input functionYashpreet singh 1.0
Fast multiplicationJean-François Geyelin 5.5
Fast way to reverse the bits in a byteJohn Hite 1.0
Fastest raise to power.Ezzetabi 5.6
finding size of variable without using sizeof()Rajesh punia 3.8
Fix all compiler warningsrickey 5.4
Flowchartsayyapparaju 5.6
Free The Memory That You UseUdhaya Kumar.D 5.7
Full Abstract class/InterfaceRamakrishna 2.2
Get a copy of the standardThantos 5.6
getchar() returns an intRob 5.6
gets is dangerouscarl johnson 5.3
gets() is bad.Sean 5.8
Getting the size of an array with any datatypeSaddam Abu Ghaida 5.1
Give Proper Names to Your VariablesMaragato 5.4
Goto vs. Higher-level control structuresSean 5.8
High performance loopingRachana 5.4
In C++ a pure abstract base class is a contractMarty Corbett 5.1
increase 1 without using +-*/henry zhang 0.0
Increment and decrement counters with rolloverLee Walker 7.7
increment and decrement on pointerRAJKUMAR 5.0
Indent your ProgramPrashant Sahay 5.5
initalization of objectsmohit dhawan 5.6
Initialise all variablesJia.Lu 5.7
Initialise all variables before useMounish 5.5

Next 30
Previous 30

Help your fellow programmers! Add a tip!