subject

What is the output of the following code?

int x;
int *p;
int *q;

p=new int [10];

q=p;
*p=4;

for (int j = 0; j < 10; j++)
{
x = *p;
p++;
*p = x + j;
}

for (int k = 0; k < 10; k++)
{
cout < < *q < < "";
q++;
}

cout < < endl;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:20
Find the inverse function of f(x)= 1+squareroot of 1+2x
Answers: 2
question
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is the name of the option in most presentation applications with which you can modify slide elements? 1. the option enables you to modify a slide element in most presentation applications.
Answers: 3
question
Computers and Technology, 23.06.2019 03:00
State 7 common key's for every keyboard
Answers: 1
You know the right answer?
What is the output of the following code?

int x;
int *p;
int *q;
Questions
question
Social Studies, 02.03.2021 20:00
question
Mathematics, 02.03.2021 20:00
Questions on the website: 13722363