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)
Always write if statements with bracesWebmaster 5.6
Benefits of inline functionsAli Nawkhas Murad 5.6
Keep a cool head when programmingSentralia 5.6
take advantage of array indiciesDave 5.6
Safely using strncpyoliv29 5.6
String to integerMayur Avhad 5.6
char *pa; and char a[];avdtech 5.6
Use the Appropriate VariablesMahesh Kumar.S 5.5
Indent your ProgramPrashant Sahay 5.5
Fast multiplicationJean-François Geyelin 5.5
use of ! operatormrinal jha 5.5
Pointer arithmetic hackVivek Ahlawat 5.5
Pointer Memory allocationKrishnamoorthi 5.5
Write it out on paperrakesh kumar 5.5
Initialise all variables before useMounish 5.5
Long variable namesCarl 5.5
without using conditional statement find even or odd ABDUL RIZWAN 5.5
Code Optimization TipsBasker Swaminathan 5.5
Doing calculationsLinuxguru 5.5
Effective Modularity in ProgrammingSharma PCS 5.5
compiler tipJulian Sutherland 5.5
Fix all compiler warningsrickey 5.4
Differences between class and structAli Nawkhas Murad 5.4
Give Proper Names to Your VariablesMaragato 5.4
High performance loopingRachana 5.4
Make backupsVox 5.4
Prefer pre-increment and pre-decrementKarl 5.4
Modifying const variablesWiro Sableng 5.4
think before you codeTimofei Gerasimov 5.4
Reuse Old CodeTimofei Gerasimov 5.4

Next 30
Previous 30

Help your fellow programmers! Add a tip!