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)
When optimizing code, focus on algorithms firstAlex Allain 7.3
difference between int* p and int *p declarationomprakash mishra 7.1
Never do unary minus on sizeofVaibhav 7.1
C++ is not a pure Object Oriented Language..Hridesh Vishwdewa 7.0
Always write if statements with bracesWebmaster 7.0
Automatic Array initialisationkedar 7.0
Be organisedProphet-Ex 7.0
Multiply rather than DivideReese Moore 7.0
Solve Any Compiler Error EasilyWajahat Karim 6.9
Standard Loop ProgressionDazzle 6.9
Keep fit to program betterLuna Man 6.9
Common Optimization TipsTravis Fischer 6.9
Keep a cool head when programmingSentralia 6.8
Pointer Tips :-)Jatin Gandhi 6.8
Decompose before you codeAbhinandan Pandey 6.8
Pointer Memory allocationKrishnamoorthi 6.8
High performance loopingRachana 6.8
C++ new does not return 0 on failure!Are R. Svendsen 6.8
Initialise all variables before useMounish 6.8
Converting numbers to StringsWebmaster 6.7
Assigning a char array to another char arrayBrian Plummer 6.7
Flowchartsayyapparaju 6.7
Fast multiplicationJean-François Geyelin 6.7
Arguments for MainSajan 6.7
Use ++ and --Subyraj P.S 6.7
Effective Modularity in ProgrammingSharma PCS 6.6
The many meanings of NULLRajat Kochhar 6.6
Safely using strncpyoliv29 6.6
Avoid void main()Webmaster 6.6
clean up after cin (C++)Major_Small 6.6

Next 30
Previous 30

Help your fellow programmers! Add a tip!