<<< Pointer to character string | Index | Pointers and arrays >>> |
#include <iostream> using namespace std; void print( char* message ) { cout << message << '\n'; } int main( ) { char* phello = "Hello"; print( phello ); print( "World" ); return 0; }; /* Program output: Hello World */
<<< Pointer to character string | Index | Pointers and arrays >>> |