I need help with these questions? Please help
i got number 5: to be 5.8, 25, ?, 19 and 19
the first print the addition of {1,2,3,4};, if result =0, later result = 0 + 1, later result = 1+2, later result = 3+3, later result = 6 + 4, when it finish the value of result is 10.
what about question 3 and 4? any ideas
yes in a moment please jejeje
thank you
in the number 3 it is also an addition but there is a break, it is common to see when you are using a structure like switch, in this case the break stops the function inmediatly after the condition "if (i == 2)" when the for is in the tird cycle it would be (a[i] = 3), it is the same to say condition (i == 2) where a[2] = 3. then the result or print would be 3... look at it a[] = {1,2,3,4}; imagine each number is "i" and there the count starts li 1=0, 2=1, 3=2, 4=3 (0,1,2,3) are four numbers this secuence will be to i, then if you call a[1]=2
sorry man, i programmed that in codeblook and the result was 3, so you right and i learned someting jejeje,
4. Fill in the blanks with single characters, given the following character strings: int i = 3; char Copilot[] = "Chewbacca"; char Princess[] = "Leia"; char Master[] = "Obi Wan"; Copilot[0] chewbacca Copilot[i] ? Princess[i+1] ? Master[2*i] ? Master[i-3] Obi Wan
Join our real-time social learning platform and learn together with your friends!