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)
Determining if something was processed in a switch/case constructMarty Corbett 4.3
String to integerMayur Avhad 5.9
initalization of objectsmohit dhawan 6.5
Swap without temporary variableMoosa Baransi 0.0
Enums instead of const member variablesMotiram Patil 0.0
Use Enums instead of const member variablesMotiram Patil 0.0
Initialise all variables before useMounish 6.8
use of ! operatormrinal jha 6.2
Understanding the win32 data typesMuhammad Shahid 3.2
Dynamic memory allocation of 2d arraysnandam 3.7
Run code in Different compilersNaren Varma 6.0
Better coding style for comparisonnids 7.3
Comparisons in C\C++Nikitas Angelinas 7.4
Safely using strncpyoliv29 6.6
difference between int* p and int *p declarationomprakash mishra 7.1
do not use printf without %s to print a stringpavan kumar 7.6
Put braces around if statement code, part 2PING 5.3
Tips for writing programs for beginnerspradeep 4.5
Cute but dangerous code, finding the larger integer without using comparisonsPrakash Samy 3.0
Indent your ProgramPrashant Sahay 5.5
Use Good Variable And Function Namesprog-bman 6.1
Be organisedProphet-Ex 7.0
High performance loopingRachana 6.8
swap with out using temporaryraghava 8.0
The many meanings of NULLRajat Kochhar 6.6
take care while using new and deleterajender 4.2
finding size of variable without using sizeof()Rajesh punia 5.8
increment and decrement on pointerRAJKUMAR 5.4
Write it out on paperrakesh kumar 6.5
Full Abstract class/InterfaceRamakrishna 6.4

Next 30
Previous 30

Help your fellow programmers! Add a tip!