Question: Examine the following C++ code. Which variable is the pointer? int r, j; char *options; float &pathogens; options pathogens What does the following statement mean?




Examine the following C++ code. Which variable is the pointer? int r, j; char *options; float &pathogens; options pathogens What does the following statement mean? int (*fp)(char*) pointer to an array of chars function taking a char* argument and returning a pointer to int pointer to function taking a char argument and returns an int pointer to a pointer What does the following C++ statement define? string* x, y; both x and y are pointer to string types y is a pointer to a string, x is a string none of these choices is correct x is a pointer to a string, y is a string The correct C++ syntax for a function (called "fun") prototype that takes pointer to a float, a pointer to a pointer to a char and returns a pointer to a pointer to a pointer to an integer is given by which of the following? int ***fun(float", char**) int ***fun("float, **char) int **fun(float**, char**) int*fun(float", char)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
