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 7.0
Never do unary minus on sizeofVaibhav 7.0
Solve Any Compiler Error EasilyWajahat Karim 6.9
Multiply rather than DivideReese Moore 6.9
Be organisedProphet-Ex 6.9
Standard Loop ProgressionDazzle 6.9
Common Optimization TipsTravis Fischer 6.8
Keep fit to program betterLuna Man 6.8
Keep a cool head when programmingSentralia 6.8
C++ is not a pure Object Oriented Language..Hridesh Vishwdewa 6.8
Pointer Tips :-)Jatin Gandhi 6.8
High performance loopingRachana 6.8
Pointer Memory allocationKrishnamoorthi 6.8
C++ new does not return 0 on failure!Are R. Svendsen 6.7
Converting numbers to StringsWebmaster 6.7
Initialise all variables before useMounish 6.7
Fast multiplicationJean-François Geyelin 6.7
Flowchartsayyapparaju 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.5
clean up after cin (C++)Major_Small 6.5
Avoid void main()Webmaster 6.5
initalization of objectsmohit dhawan 6.5
Write it out on paperrakesh kumar 6.5
Decompose before you codeAbhinandan Pandey 6.5
Be careful about array size when u are using strcpBhushan Verma 6.5
Dont't use scanf() when reading sentencesRomnico 6.5
think before you codeTimofei Gerasimov 6.5

Next 30
Previous 30

Help your fellow programmers! Add a tip!