•
•
•
•
C++ allows for data hiding while C does not meaning that C++ will always be chosen
over C when privacy is a concern, C++ allows for inheritance while C does not
meaning that C++ will usually be selected when dealing with larger scale projects
that benefit from reduced lines of code, C is top-down while C++ is bottom-up
meaning that for simple straightforward tasks C will be better to use
You can display/scan multiple variable values by making sure to add extra formal
specifiers along with commas after each variable name outside the text. When
wrong formal specifiers are used, the program will fail in compilation. Forgetting
which formal specifier to use is a common pitfall as well as when scanning in
characters or strings you don’t need to preface the name with an &.
Another example of when that is useful is when trying to find the dimensions of a
piece of furniture. There could be individual structures for the piece that make up
the furniture, like legs or back face, that take into account the length width and
height of that piece. This would then be subitems of the furniture structure to find
the total length, width and height of the piece of furniture
The information provided are things like when the file was modified, file size, file
name, who owns the file. This can be useful when trying to find how long ago a file
was modified or which file in a folder is the largest.