Start learning 50% faster. Sign in now
In the code, ptr initially points to the first element of the array arr. The line ptr += 2; moves the pointer two positions ahead, meaning ptr now points to the third element of the array, which is 3. Therefore, *ptr dereferences the pointer to print the value 3. Why Other Options are Wrong: a) 1 is the first element, but the pointer has moved past it. b) 2 is the second element, but ptr skips over it. d) 4 is the fourth element, but ptr stops at the third. e) 5 is the fifth element, beyond where ptr is pointing.
Where is Haryana's only footwear park located?
Kyoto Protocol is related to:
Who was elected as Thailand’s new prime minister at the age of 37?
Identify the bank that collaborated with DMI Finance to introduce a co-branded credit card.
Constitution for the appointment of Chief Election Commissioner and other Election Commissioners-
Who among the following politicians had written the autobiography ‘My Country My Life’?