63. Pointer-i

Question.6

A function updates a sensor calibration offset. The caller needs to see the updated value:

void calibrate(int ___ offset) {
   ___ offset = *offset + 5;
}

int cal = 10;
calibrate(&cal);
// cal should now be 15

What goes in the two blanks?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!