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)
Modifying const variablesWiro Sableng 5.4
Reuse Old CodeTimofei Gerasimov 5.4
Avoid memory wastageArthi 5.4
Give Proper Names to Your VariablesMaragato 5.4
Better enumsBrent 5.3
Declaration of abstract class in c++Ali Nawkhas Murad 5.3
Multiply rather than DivideReese Moore 5.3
What is a friend function?Ali Nawkhas Murad 5.3
Operator Associativity and HierarchyAvinash 5.3
Be careful of Magic behaviour due to compilers manik 5.3
Be careful about array size when u are using strcpBhushan Verma 5.3
Passing a pointer to a functionIrfaan Kamo 5.3
Put braces around if statement code, part 2PING 5.3
gets is dangerouscarl johnson 5.3
match the out side world ideas to logical designinmady 5.3
backups using CVS save you lot of spaceLeif 5.3
pre & post increment & decrement operators jay 5.3
Unexpected struct behavior in Borlands Turbo C++ 3Raza Sayed 5.2
Error handling for newUpesh Jindal 5.2
Use virtual functions instead of type checkingSajan 5.2
Turn on all compiler warningsMaragato 5.2
Use <constant> == <value>Webmaster 5.2
Checking if two arrays are equalUnnikrishnan T A 5.2
Set the most significant bit of an int Alphonse Ajayan 5.2
C++ new does not return 0 on failure!Are R. Svendsen 5.1
In C++ a pure abstract base class is a contractMarty Corbett 5.1
Getting the size of an array with any datatypeSaddam Abu Ghaida 5.1
increment and decrement on pointerRAJKUMAR 5.0
Count number of bits in an integer.Anjani Kumar Mishra 5.0
Copy constructorAli Nawkhas Murad 5.0

Next 30
Previous 30

Help your fellow programmers! Add a tip!