We can actually go one step further and remove the pointer variables in main() and then pass the desired addresses directly in each function call. We'll still need the pointer variables as function parameters in the function definition, just not in the main() function body.
Copy pointers2.c to pointers3.c and modify only the body of main(), as follows:
int height = 10;
int width= 20;
int length = 40;
printf( "\nValues:\n\n");
showInfo( height , width , length );
printf( "\nUsing address of each named variables...\n\n");
showVariable( "height" , &height );
showVariable( "width " , &width );
showVariable( "length" , &length );
The showInfo() and showVariables()functions do not change. You'll also have to remove theprintf()statement that prints info aboutpDimension. Save, compile, and run the program. As before, the output should...