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 15:30
Communication is the exchange of information. true or false?
Answers: 1
question
Computers and Technology, 23.06.2019 09:00
Before you record your own voice, you should a. record other people's voices b. warm up and practice difficult names c. listen to your favorite songs d. read a transcript of a good radio news segment
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
Column a of irma’s spreadsheet contains titles for each row, but her document is too big and will be printed three pages across. she wants to be sure that every page will be understood. what can irma do to with this problem?
Answers: 3
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
What is the output of the following code?

int x;
int *p;
int *q;
Questions
question
Geography, 26.12.2019 21:31
question
Mathematics, 26.12.2019 21:31
Questions on the website: 13722361