Hi, can someone help me with this?
I put the answers in blue but i need the solution for how to find the answers....
If someone knows please help. It's Computer C++ Programs
I'll report if it's spam
Thank you :)
Attachments:
Answers
Answered by
1
Answer:
note that index value of an array starts with zero
value 1 - first the value in b[3] is 4
then the value in a[4] is checked but there is no value in this so 0 is printed
value 2 - a[4]=0 then b[0]=30
so it is printed
Q2)
the value at array[3] is 4
it replace 4 by 4-2 that is 2
so the value at index 3 becomes 2
Q3)
first the values of the array list are stored using the formula 2*i-5
then respective values are replaced in the third for loop
Q4) the while loop starts with a value of 4 in i so it is executed 4 times that is 4,5,6,7 so there are 4 values stored in the first 4 places of the b array
ping me for any doubts
Hope my answer is helpful.
Hope my answer is helpful. Mark me as the brainliest for my effort....Thank you..
Similar questions
History,
4 months ago
Physics,
4 months ago
History,
11 months ago
Computer Science,
11 months ago
Computer Science,
11 months ago