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)
Better coding style for comparisonnids 7.3
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
Always write if statements with bracesWebmaster 7.0
Automatic Array initialisationkedar 7.0
static member functions and this pointerdhruv shekhawat 7.0
Be organisedProphet-Ex 7.0
Multiply rather than DivideReese Moore 7.0
Arguments for MainSajan 6.9
Solve Any Compiler Error EasilyWajahat Karim 6.9
Keep fit to program betterLuna Man 6.9
Common Optimization TipsTravis Fischer 6.9
Standard Loop ProgressionDazzle 6.8
Pointer Tips :-)Jatin Gandhi 6.8
Keep a cool head when programmingSentralia 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
C++ is not a pure Object Oriented Language..Hridesh Vishwdewa 6.8
Converting numbers to StringsWebmaster 6.8
finding size of variable without using sizeof()Rajesh punia 6.8
Fast multiplicationJean-François Geyelin 6.7
Flowchartsayyapparaju 6.7
Use ++ and --Subyraj P.S 6.7
Effective Modularity in ProgrammingSharma PCS 6.6
Avoid void main()Webmaster 6.6
The many meanings of NULLRajat Kochhar 6.6
Safely using strncpyoliv29 6.6

Next 30
Previous 30

Help your fellow programmers! Add a tip!