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)
Be careful about array size when u are using strcpBhushan Verma 5.8
Turn on all compiler warningsMaragato 5.8
Write it out on paperrakesh kumar 5.8
Fast multiplicationJean-François Geyelin 5.8
Temporariless SwapGuille 5.8
Avoid memory wastageArthi 5.8
High performance loopingRachana 5.8
Flowchartsayyapparaju 5.8
compiler tipJulian Sutherland 5.8
Code Optimization TipsBasker Swaminathan 5.8
logical error on divisionM.Kumaran 5.8
Rounding to an IntegerGorn 5.8
difference between int* p and int *p declarationomprakash mishra 5.8
Programming TipsJatin Gandhi 5.8
Multiply rather than DivideReese Moore 5.8
Use <constant> == <value>Webmaster 5.8
Use multiple filesThantos 5.7
Always write if statements with bracesWebmaster 5.7
Member Functions are inline by default (C++)Ash 5.7
Common Optimization TipsTravis Fischer 5.7
Commenting out code with the preprocessorWebmaster 5.7
Make libraries for yourselfValseedian 5.7
Goto vs. Higher-level control structuresSean 5.7
swap with out using temporaryraghava 5.7
beware of loop invarinatsIain 5.7
Be organisedProphet-Ex 5.7
Avoid void main()Webmaster 5.7
Be careful of Magic behaviour due to compilers manik 5.7
Free The Memory That You UseUdhaya Kumar.D 5.7
do not use printf without %s to print a stringpavan kumar 5.7

Next 30
Previous 30

Help your fellow programmers! Add a tip!