Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
C++ Tutorial
Function 98 codes
Home
C++ Tutorial
Function
1 A Demonstration of an Inline Function
2 A function may return an object to the caller
3 A local variable is initialized each time its block is entered
4 Ambiguous function call with function with default parameter value
5 Arguments passed by pointer
6 Arguments passed by reference
7 Array passed by pointer
8 Arrays of pointers to functions
9 Automatic type conversions can affect overloaded function resolution
10 Change a call-by-value parameter does not affect the argument
11 Change the contents of an array using a function
12 Compare pass-by-value and pass-by-reference with references
13 Const reference
14 Constructors, destructors, and passing objects
15 Copy constructor invoked when passing an object to a function
16 Create overloaded print() and println() functions that display various types of data
17 Data slicing with passing by value
18 Declare int array parameter for a function without indicating the array length
19 Default Arguments vs Overloading
20 Default arguments with parameters
21 Define function to accept three int parameters
22 Define function to add two parameters together
23 Define overload function with short integer parameter
24 Definition of function template maximum
25 Demonstrate default arguments
26 Demonstrate recursion
27 Demonstrate the pointer version of swap()
28 Demonstrates missing and default arguments
29 Finding the Address of an Overloaded Function
30 Function inlining
31 Function level variable
32 Function parameter
33 Function pointer for overloaded function
34 Function with two regular parameters and one parameter with default value
35 Functions in an expression
36 Functions that take no arguments
37 Handling an array parameter as a pointer
38 Inline Functions
39 Inline functions work best on short functions that are used repeatedly This example calculates the square of an integer
40 More than one returning value
41 Multiple return statements in a function
42 Orders two arguments using pointers
43 Overload a function three times
44 Overload function by parameter type
45 Overload function with array type
46 Overload functions with two parameters
47 Overloading a function - removing ambiguity with a cast
48 Overloading a function with const reference parameters
49 Overloading a function with reference parameters
50 Overloading abiguity
51 Overloading ambiguity
52 Overloading functions with difference in number of parameters
53 Pass a pointer to a function
54 Pass a string to a function
55 Pass an object to a function
56 Pass by reference by using pointer
57 Pass by reference using references
58 Pass int array to a function
59 Pass variable address to a function
60 Passing a two-dimensional array to a function
61 Passing an array to a function
62 Passing int by value
63 Passing Objects to Functions
64 Passing pointers to objects
65 Passing references to objects
66 Print a string backwards using recursion
67 Recursive factorial function
68 Return a double value from a function
69 Return a pointer from a function
70 Return a value from a function
71 Return class instance from a function
72 Return objects from a function
73 Return void from a function
74 Returning a pointer from function
75 Returning a reference
76 Returning multiple values from a function using pointer
77 Returning multiple values from a function using references
78 Sorts an array using pointers
79 The function call stack and activation records
80 The iterative factorial method
81 The recursive fibonacci function
82 The use of and its support macros va_arg, va_start, and va_end
83 This program contains two functions
84 Use a const pointer parameter
85 Use a function prototype to enforce strong type checking
86 Use a functions definition as its prototype, appears before main
87 Use array as functions parameter
88 Use function pointers as a function parameter
89 Use reference parameters to create the swap() function
90 Use two default parameter values
91 Use typedef to define a function type for function pointer
92 Using a reference parameter
93 Using function pointers
94 Using multiple default parameter values
95 Using pointers with const methods
96 Using reference parameters
97 Var args has to be the last one
98 Void function with return statement