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)
Use the Appropriate VariablesMahesh Kumar.S 5.5
Indent your ProgramPrashant Sahay 5.5
use of ! operatormrinal jha 5.5
Initialise all variables before useMounish 5.5
Long variable namesCarl 5.5
Pointer arithmetic hackVivek Ahlawat 5.5
Doing calculationsLinuxguru 5.5
Effective Modularity in ProgrammingSharma PCS 5.5
increment and decrement on pointerRAJKUMAR 5.5
Fix all compiler warningsrickey 5.4
Give Proper Names to Your VariablesMaragato 5.4
Make backupsVox 5.4
Reuse Old CodeTimofei Gerasimov 5.4
Put braces around if statement code, part 2PING 5.3
What is a friend function?Ali Nawkhas Murad 5.3
match the out side world ideas to logical designinmady 5.3
gets is dangerouscarl johnson 5.3
Operator Associativity and HierarchyAvinash 5.3
backups using CVS save you lot of spaceLeif 5.3
C++ is not a pure Object Oriented Language..Hridesh Vishwdewa 5.3
Unexpected struct behavior in Borlands Turbo C++ 3Raza Sayed 5.3
Passing a pointer to a functionIrfaan Kamo 5.3
Error handling for newUpesh Jindal 5.3
Don't modify a variable more than once in a single statementGanga R Jaiswal 5.3
Use virtual functions instead of type checkingSajan 5.2
Compiling 32-bit code on a 64-bit machinevinay Kumar 5.2
C++ new does not return 0 on failure!Are R. Svendsen 5.2
Set the most significant bit of an int Alphonse Ajayan 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

Next 30
Previous 30

Help your fellow programmers! Add a tip!