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)
clean up after cin (C++)Major_Small 6.6
initalization of objectsmohit dhawan 6.5
Common Optimization TipsTravis Fischer 6.5
Write it out on paperrakesh kumar 6.5
Long variable namesCarl 6.5
Dont't use scanf() when reading sentencesRomnico 6.5
Code Optimization TipsBasker Swaminathan 6.5
Keep a cool head when programmingSentralia 6.5
Be careful about array size when u are using strcpBhushan Verma 6.5
Benefits of inline functionsAli Nawkhas Murad 6.5
do not use printf without %s to print a stringpavan kumar 6.5
think before you codeTimofei Gerasimov 6.5
LogicHardi Pertel 6.5
What is a friend function?Ali Nawkhas Murad 6.4
Full Abstract class/InterfaceRamakrishna 6.4
Clever ways to avoid using if statementsA. Karthick Pandia Samy 6.4
loop conditionKrishna 6.4
What is pointer arithmetic?Umer khan 6.4
Be careful when storing pointers inside unionssingam kiran reddy 6.4
Pointer arithmetic hackVivek Ahlawat 6.4
Differences between class and structAli Nawkhas Murad 6.4
Passing array elements to functionsUmer khan 6.4
Display Date and Time in C++Govind 6.4
Effective use of ==Er.Nathan 6.4
Decompose before you codeAbhinandan Pandey 6.3
Standard Loop ProgressionDazzle 6.3
Programming TipsJatin Gandhi 6.3
Multiply rather than DivideReese Moore 6.3
Make libraries for yourselfValseedian 6.3
In C++ a pure abstract base class is a contractMarty Corbett 6.3

Next 30
Previous 30

Help your fellow programmers! Add a tip!