#include<stdio.h>

/**
 * Terry Harvey CIS 105 Section 010 TA Tina Weymouth
 *  Demonstration program
 **/
void f(int test);
void g(int test[]);
int main(){
    int data[] = {5,6,7};
    int i = 7;

    f(data[1]);
    g(data);
    printf("data[1] is %d\n", data[1]);
    return 0;
}

void g(int test[]){
    printf("test is at: %p\n", test);
    test[1]++;
    printf("test[1] is %d\n", test[1]); // we expect 7
}

void f(int test){
    printf("test is %d\n", test);
    test++;
    printf("test is %d\n", test);
    return;
}

