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.
Which electromagnetic wave has the longest wavelength?
Which of the following is not a property of electromagnetic waves?
Passion fruit and pomegranate are rich in which mineral?
Organisms have been divided into how many kingdoms?
What happens to the gravitational force between two objects if the distance between them is doubled ?
Which type of tissue in humans transports oxygen to the body's cells?
A mobile phone charger is
What is the primary function of dietary fiber?
Addition of ethylene dibromide to petrol
Which of the following devices stores electrical energy in a magnetic field?