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)
Checking if two arrays are equalUnnikrishnan T A 5.0
One instruction per lineLudovic Flender 5.0
Use const variables as function parameters when pobeyonddc 4.9
Make pointer and reference arguments constAkshay 4.9
merqery in cjeevan 4.8
What is pointer arithmetic?Umer khan 4.7
Avoid stl set non-const iteratorsIgor 4.7
Compiling 32-bit code on a 64-bit machinevinay Kumar 4.6
Benefits of a Lookup TableAli Nawkhas Murad 4.5
Don't modify a variable more than once in a single statementGanga R Jaiswal 4.4
Why you can't dereference a void* pointerashish mathur 4.3
C and C++ bit Operations Trickssedfy 4.2
take care while using new and deleterajender 4.2
Convert String to SYSTEMTIMESaddam Abu Ghaida 4.1
Swap without temporary variableMoosa Baransi 4.1
.c is used for c while .cpp is used for c++G.P. 3.9
Tips for writing programs for beginnerspradeep 3.8
finding size of variable without using sizeof()Rajesh punia 3.7
Automatic Array initialisationkedar 3.7
Arguments for MainSajan 3.6
Determining if something was processed in a switch/case constructMarty Corbett 3.5
Understanding the win32 data typesMuhammad Shahid 3.4
Effective use of ==Er.Nathan 3.3
Operator precedence shortcutsai shanker 3.2
Assigning a char array to another char arrayBrian Plummer 3.1
Dynamic memory allocation of 2d arraysnandam 3.0
Tip for MacroSankareswari 3.0
Check the return value of scanf( )citizen 2.9
creating a messagebox on WindowsAmarjeet Kawathe 2.8

Next 30
Previous 30

Help your fellow programmers! Add a tip!