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)
initalization of objectsmohit dhawan 5.6
Swap without temporary variableMoosa Baransi 5.2
Enums instead of const member variablesMotiram Patil 5.1
Use Enums instead of const member variablesMotiram Patil 5.5
Initialise all variables before useMounish 5.5
use of ! operatormrinal jha 5.5
Understanding the win32 data typesMuhammad Shahid 5.3
Test pieces of your code earlyN/A 5.6
LogicN/A 5.7
Dynamic memory allocation of 2d arraysnandam 6.4
Run code in Different compilersNaren Varma 5.6
Better coding style for comparisonnids 5.6
Comparisons in C\C++Nikitas Angelinas 5.9
Safely using strncpyoliv29 5.5
difference between int* p and int *p declarationomprakash mishra 5.7
do not use printf without %s to print a stringpavan kumar 6.2
Put braces around if statement code, part 2PING 5.3
Tips for writing programs for beginnerspradeep 7.5
Cute but dangerous code, finding the larger integer without using comparisonsPrakash Samy 6.5
Indent your ProgramPrashant Sahay 5.5
Use Good Variable And Function Namesprog-bman 5.6
Be organisedProphet-Ex 5.9
High performance loopingRachana 5.4
swap with out using temporaryraghava 6.3
The many meanings of NULLRajat Kochhar 5.8
take care while using new and deleterajender 7.9
finding size of variable without using sizeof()Rajesh punia 5.6
increment and decrement on pointerRAJKUMAR 5.6
Write it out on paperrakesh kumar 5.5
Full Abstract class/InterfaceRamakrishna 4.0

Next 30
Previous 30

Help your fellow programmers! Add a tip!