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)
char *pa; and char a[];avdtech 5.6
Passing array elements to functionsUmer khan 5.6
Keep a cool head when programmingSentralia 5.6
C++ is not a pure Object Oriented Language..Hridesh Vishwdewa 5.5
Fast multiplicationJean-François Geyelin 5.5
take advantage of array indiciesDave 5.5
Benefits of inline functionsAli Nawkhas Murad 5.5
Safely using strncpyoliv29 5.5
String to integerMayur Avhad 5.5
Code Optimization TipsBasker Swaminathan 5.5
Pointer arithmetic hackVivek Ahlawat 5.5
Write it out on paperrakesh kumar 5.5
without using conditional statement find even or odd ABDUL RIZWAN 5.5
Instantiate a singleton class i.e no more than one instance possibleAnjan Ghose 5.5
use of ! operatormrinal jha 5.5
Pointer Memory allocationKrishnamoorthi 5.5
Initialise all variables before useMounish 5.5
Long variable namesCarl 5.5
Doing calculationsLinuxguru 5.5
Indent your ProgramPrashant Sahay 5.5
Effective Modularity in ProgrammingSharma PCS 5.5
Use the Appropriate VariablesMahesh Kumar.S 5.5
compiler tipJulian Sutherland 5.4
Differences between class and structAli Nawkhas Murad 5.4
difference between float and doubleankit panwar 5.4
Fix all compiler warningsrickey 5.4
High performance loopingRachana 5.4
Make backupsVox 5.4
think before you codeTimofei Gerasimov 5.4
Passing a pointer to a functionIrfaan Kamo 5.4

Next 30
Previous 30

Help your fellow programmers! Add a tip!