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

Next 30

Help your fellow programmers! Add a tip!