‹ Back to the paper
Fill in the blanks marked ?1?, ?2? ... so that the code works.
What is the statement or expression at ?1?
Answer
Answer
AI$?1? = 0$ - rev is initialised to 0 before the reversed digits are accumulated into it.
From ISC 2018 Computer Science Paper 1, question 3(i).