MC logo
[^] CSc 220 Home
[Introduction] [Boolean and Control] [Functions] [Arrays and Pointers] [Dynamic Arrays] [Array Errors] [Command Array] [Standard Containers] [Structs and Classes] [Automatic Pointer] [Multi-File Programs] [Copying Objects] [Templates] [Inheritance] [Plain C I/O] [Type Odds And Ends] [Plain C Strings] [File I/O]
[Functional Average] [Functional Average II] [Functional Average III] [Default Parameters] [Function Overloading] [Reference Parameters] [Constant References] [Namespaces] [Namespaces I] [Using Namespaces]
Reading: Ch. 9. Note that we take up functions first, and namespaces later.

We have seen starting function main. A C program may have any number of top-level functions. Some features a shared between C and C++, but there are quite a few function features which are C++ only.

Class methods, which are actually called member functions in C++ also support the features we discuss here for top-level functions.