Respuesta :
Answer:
The output of the given program is:4457101419253240 .
Explanation:
In the code 3 variables define that's data type is integer. In these 2 variables are pointer type (*P,*q) and one is integer variable(x). In the next line pointer variable p assign a single-dimensional array and second pointer variable q hold the first pointer variable value and pointer variable assign value (*p=4). Then use for loop in this loop it starts from 0 and ends from 9. In this loop, the integer variable holds pointer variable and the pointer variable increments its value and add the value end of for loop. In the next line there is another loop that start's from 0 and ends from 9. In this loop, we print the second pointer variable and increment its value by 1.
So the output of the C++ program is 4457101419253240.