C Practice Test Ints and Char Arrays
I was asked this on a practice test, that has no answers posted. I have no way to test the code, but it has confused me. Can you please help me out with not only understanding the answer, but why.

    int foo() {
        int a = 1;
        char b[] = "zapples";
        a = *(b + 1);
        if (a == 'a') return 1;
        else return 0;
    }
    What does foo return? ____ 
C Practice Test Ints and Char Arrays
===

I was asked this on a practice test, that has no answers posted. I have no way to test the code, but it has confused me. Can you please help me out with not only understanding the answer, but why.

    int foo() {
        int a = 1;
        char b[] = "zapples";
        a = *(b + 1);
        if (a == 'a') return 1;
        else return 0;
    }
    What does foo return? ____ 