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)
initalization of objectsmohit dhawan 6.5
Write it out on paperrakesh kumar 6.5
Be careful about array size when u are using strcpBhushan Verma 6.5
Dont't use scanf() when reading sentencesRomnico 6.5
Code Optimization TipsBasker Swaminathan 6.5
think before you codeTimofei Gerasimov 6.5
Clever ways to avoid using if statementsA. Karthick Pandia Samy 6.5
LogicHardi Pertel 6.5
Be careful when storing pointers inside unionssingam kiran reddy 6.4
Full Abstract class/InterfaceRamakrishna 6.4
loop conditionKrishna 6.4
Effective use of ==Er.Nathan 6.4
Pointer arithmetic hackVivek Ahlawat 6.3
Programming TipsJatin Gandhi 6.3
Make libraries for yourselfValseedian 6.3
Unexpected struct behavior in Borlands Turbo C++ 3Raza Sayed 6.3
use of ! operatormrinal jha 6.2
Initialise all variablesJia.Lu 6.2
compiler tipJulian Sutherland 6.2
backups using CVS save you lot of spaceLeif 6.2
Use preincrement with iteratorsDirk Tjantele 6.2
getchar() returns an intRob 6.2
Fix all compiler warningsrickey 6.2
Do NOT always check for NULL! (C++)Kevin Lam 6.1
creating a messagebox on WindowsAmarjeet Kawathe 6.1
Free The Memory That You UseUdhaya Kumar.D 6.1
What is pointer arithmetic?Umer khan 6.1
Use Good Variable And Function Namesprog-bman 6.1
Error handling for newUpesh Jindal 6.1
Use makefilecjediknight 6.1

Next 30
Previous 30

Help your fellow programmers! Add a tip!