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)
pre & post increment & decrement operators jay 5.4
Clever ways to avoid using if statementsA. Karthick Pandia Samy 5.7
without using conditional statement find even or odd ABDUL RIZWAN 5.5
Decompose before you codeAbhinandan Pandey 4.2
Make pointer and reference arguments constAkshay 5.1
>>using-basic-arithmatic>swapping without temp>>>using basic arithmaticAKshaY sable 0.0
When optimizing code, focus on algorithms firstAlex Allain 5.7
Using _strtime and _strdate to get the timeAli Jafar 5.7
What is a friend function?Ali Nawkhas Murad 5.4
Copy constructorAli Nawkhas Murad 5.3
Differences between class and structAli Nawkhas Murad 5.5
Benefits of a Lookup TableAli Nawkhas Murad 5.7
Benefits of inline functionsAli Nawkhas Murad 5.5
Declaration of abstract class in c++Ali Nawkhas Murad 5.4
Set the most significant bit of an int Alphonse Ajayan 5.4
creating a messagebox on WindowsAmarjeet Kawathe 4.3
Instantiate a singleton class i.e no more than one instance possibleAnjan Ghose 6.8
Count number of bits in an integer.Anjani Kumar Mishra 5.2
difference between float and doubleankit panwar 5.4
Don't use strlen in a loop condition.anonytmouse 5.7
C++ new does not return 0 on failure!Are R. Svendsen 5.2
Avoid memory wastageArthi 5.4
Member Functions are inline by default (C++)Ash 6.0
Why you can't dereference a void* pointerashish mathur 5.1
Turn off optimization when debuggingAshok Kumar 5.6
char *pa; and char a[];avdtech 5.6
Operator Associativity and HierarchyAvinash 5.5
Flowchartsayyapparaju 5.6
Code Optimization TipsBasker Swaminathan 5.5

Next 30

Help your fellow programmers! Add a tip!