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)
The power of scanf()Joanna 6.0
Convert String to SYSTEMTIMESaddam Abu Ghaida 6.0
Comment!VOX 5.9
Be careful of Magic behaviour due to compilers manik 5.9
Goto vs. Higher-level control structuresSean 5.9
Commenting out code with the preprocessorWebmaster 5.9
Comparisons in C\C++Nikitas Angelinas 5.9
Operator Associativity and HierarchyAvinash 5.9
gets() is bad.Sean 5.9
C++ is not a pure Object Oriented Language..Hridesh Vishwdewa 5.9
The many meanings of NULLRajat Kochhar 5.9
Be organisedProphet-Ex 5.9
without using conditional statement find even or odd ABDUL RIZWAN 5.8
Display Date and Time in C++Govind 5.8
Pointer Tips :-)Jatin Gandhi 5.8
Common Optimization TipsTravis Fischer 5.8
Solve Any Compiler Error EasilyWajahat Karim 5.8
Understanding the Principal of Referenced Object & Referencing Object.Eddy Wu 5.8
beware of loop invarinatsIain 5.8
Standard Loop ProgressionDazzle 5.8
loop conditionKrishna 5.8
Never do unary minus on sizeofVaibhav 5.8
increment and decrement on pointerRAJKUMAR 5.8
Free The Memory That You UseUdhaya Kumar.D 5.7
Rounding to an IntegerGorn 5.7
LogicHardi Pertel 5.7
Avoid void main()Webmaster 5.7
Keep fit to program betterLuna Man 5.7
When optimizing code, focus on algorithms firstAlex Allain 5.7
Be careful when storing pointers inside unionssingam kiran reddy 5.7

Next 30
Previous 30

Help your fellow programmers! Add a tip!