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)
Getting the size of an array with any datatypeSaddam Abu Ghaida 5.3
Understanding the win32 data typesMuhammad Shahid 5.3
Pointer arithmetic trickinessvishesh jain 5.2
Count number of bits in an integer.Anjani Kumar Mishra 5.2
C++ new does not return 0 on failure!Are R. Svendsen 5.2
Swap without temporary variableMoosa Baransi 5.2
Use const variables as function parameters when pobeyonddc 5.2
Never return a non-const pointer to a data member!hussain hani 5.2
Enums instead of const member variablesMotiram Patil 5.1
Make pointer and reference arguments constAkshay 5.1
What is pointer arithmetic?Umer khan 5.1
Why you can't dereference a void* pointerashish mathur 5.1
merqery in cjeevan 5.0
Avoid stl set non-const iteratorsIgor 4.9
C and C++ bit Operations Trickssedfy 4.8
.c is used for c while .cpp is used for c++G.P. 4.8
Automatic Array initialisationkedar 4.7
Arguments for MainSajan 4.5
Check the return value of scanf( )citizen 4.5
Effective use of ==Er.Nathan 4.4
creating a messagebox on WindowsAmarjeet Kawathe 4.3
Assigning a char array to another char arrayBrian Plummer 4.3
Decompose before you codeAbhinandan Pandey 4.2
static member functions and this pointerdhruv shekhawat 4.2
Full Abstract class/InterfaceRamakrishna 4.0
Use preincrement with iteratorsDirk Tjantele 3.9
This Technical tip explains how to concatenate multiple TIFF images using Aspose.Imaging for .NET. sherazam 3.6
Execute Mail Merge & Produce Multiple Word Documents in C# & VB.NETsherazam 0.0
increase 1 without using +-*/henry zhang 0.0
>>using-basic-arithmatic>swapping without temp>>>using basic arithmaticAKshaY sable 0.0

Next 30
Previous 30

Help your fellow programmers! Add a tip!