/*
 * Copyright ©2026 Soham Pardeshi. All rights reserved.
 * Permission is hereby granted to students registered for University of
 * Washington CSE 333 for use solely during Summer Quarter 2026 for
 * purposes of the course. No other use, copying, distribution, or
 * modification is permitted without prior written consent. Copyrights
 * for third-party components of this work must be honored. Instructors
 * interested in reusing these course materials should contact the author.
 */

#include <stdio.h>   // printf
#include <stdlib.h>  // EXIT_SUCCESS

int main(int argc, char** argv) {
  int arr[3] = {2, 3, 4};
  int* p = &arr[1];
  int** dp = &p;

  *(*dp) += 1;
  p += 1;
  *(*dp) += 1;

  printf("arr[0]: %d\n", arr[0]);
  printf("arr[1]: %d\n", arr[1]);
  printf("arr[2]: %d\n", arr[2]);
  return EXIT_SUCCESS;
}