Address after moving a double pointer backward

A program declares double temps[10]; and the array begins at byte address 5000, with sizeof(double) equal to 8 bytes. The program then runs double *p = &temps[7]; followed by p -= 2;. What byte address, in decimal, does p hold afterward? Give a whole number.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Pointers Questions: