Computer Science, asked by Artybabe, 1 year ago

I will give thanku and mark as brainliest if u ans this question. @aryamohan

Attachments:

Answers

Answered by Aryamohanan23
1
output will be  1 1 1 1 1 1 

this may help you


Artybabe: Ohk
Aryamohanan23: is there any other doubt
Artybabe: wht does array(n-1) do
Aryamohanan23: jst one index back...first case its 0th location
Artybabe: I didnt understand
Aryamohanan23: array(n-1) means array(0) -- case n=1 (intially) .0th value copied to the very next element..so value 1 is copied to 1st location..so the frst iteration the output is 1 1 4 6 7 5
Aryamohanan23: in second iteration n=2...so frst position value is copied to second location...so the 1is copied and 4 is replaced..then the output of second iteration will be 1 1 1 6 7 5
Aryamohanan23: hope you understand
Artybabe: yes understud
Aryamohanan23: okay..keep learning
Similar questions