Hi all
I have a question regarding pointer. Hope someone can help me. Below are my codes, I have tagged:
=========================================
=========================================Code:int main (int argc, const char * argv[]) { if ( fp == NULL ) DoError( "Couldn't open file!" ); //<<<< } void DoError( char *message ) { // <<<< printf( "%s\n", message ); exit( 0 ); }
Looking at the //<<<< line of codes which I have tagged, can someone explain to me why void DoError (char *message) function requires a pointer (*message)?
Thanks and much appreciated



LinkBack URL
About LinkBacks



