Question: Given the following declaration of an integer variable number, and the partially finished function header for getNumber, write a function definition that will ask user
Given the following declaration of an integer variable "number", and the partially finished function header for "getNumber", write a function definition that will ask user to enter a value, no input validation needed:
int number:
// call the "getNumber" function here
//function header for "getNumber". Name the parameter "pNum" as a pointer, this function asks the user to enter one number. The value entered is stored in the variable pointed to by "pNum", fill out function definition and parameter.
void getNumber(____________________)
{
}
in c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
