Accessing Array Elements .............................................................................................................................. 93
Arrays in C++ .................................................................................................................................................. 94
Passing Arrays to Functions ........................................................................................................................... 98
The C-Style Character String ........................................................................................................................ 104
The String Class in C++ ................................................................................................................................. 106
What are Pointers? ...................................................................................................................................... 108
Using Pointers in C++ ................................................................................................................................... 109
Pointers in C++ ............................................................................................................................................. 110
Pointers vs Arrays ........................................................................................................................................ 115
Array of Pointers.......................................................................................................................................... 117
Pointer to a Pointer ..................................................................................................................................... 119
Passing Pointers to Functions ...................................................................................................................... 120
Return Pointer from Functions .................................................................................................................... 123
References vs Pointers ................................................................................................................................. 126
Creating References in C++ .......................................................................................................................... 126
References as Parameters............................................................................................................................ 127
Reference as Return Value ........................................................................................................................... 129
20. DATE AND TIME ................................................................................................................ 131
Current Date and Time ................................................................................................................................ 132
Format Time using struct tm ........................................................................................................................ 133