Plz solve this plz Its my exm 2moro
Attachments:
Answers
Answered by
0
Given programing is in c language in of array
Here
5 element are assign with different value
the operation take place is
A[0]= 10+20=30
A[4]= 40 - 30=10
so
A[4] = 15
output is
30 , 15
Answered by
0
Answer:
output is
A[0]=50
A[4]=15
Explanation:
here given
A[ ] ={10,20,30,40,50}
A[0]=A[1]+A[2]
A[4]=A[4]-A[3]
then
A[0]=10
A[1]=20
A[2]=30
A[3]=40
A[4]=50
A[0]=A[1]+A[2]
A[0]=20+30
A[0]=50
A[4]=A[4]-A[3]
A[4]=50-40
A[4]=10
given
A[4]+=5
this means
A[4]=A[4]+5
A[4]=10+5
A[4]=15
then the new values of A[0]=50 and A[4]=15
given
printf("A[0]=%d\n A[4]=%d",A[0],A[4])
then they print the values of A[0] and A[4] values
as A[0]=50
A[4]=15
this will be the output
Similar questions