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

Next 30

Help your fellow programmers! Add a tip!