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:
![](https://hi-static.z-dn.net/files/d37/264330525349170d615f74ad1d5f6ba8.png)
![](https://hi-static.z-dn.net/files/dca/05bcffd10af04a53d169cbee5ba911e9.png)
![](https://hi-static.z-dn.net/files/dc7/6f7c212df0f9174cac66cc054e05c9ae.png)
![](https://hi-static.z-dn.net/files/df0/b04fc17bd428505c102b60e3b9288a65.png)
![](https://hi-static.z-dn.net/files/d62/91c666a39010d2875769c8c09e679ce0.png)
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
Hindi,
6 months ago
Science,
6 months ago
Math,
6 months ago
History,
1 year ago
Computer Science,
1 year ago