Question: Assign numItems' address to numItemsPtr, then print the shown text followed by the value to which numItemsPtr points. End with newline. Items: 99 #include using
Assign numItems' address to numItemsPtr, then print the shown text followed by the value to which numItemsPtr points. End with newline.
Items: 99
#include
using namespace std;
int main() {
int* numItemsPtr = nullptr;
int numItems = 99;
/* Your solution goes here */
numItemsPtr = &numItems;
printf("Items: %d ", *numItemsPtr);
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
