// Tests the sizeof() operator on arrays

const byte* SCREEN = $400;

void main() {
    byte idx = 0;

    // Arrays
    byte[3] ba;
    SCREEN[idx++] = '0'+sizeof(ba)/sizeof(byte);

    word[3] wa;
    SCREEN[idx++] = '0'+sizeof(wa)/sizeof(word);

    byte sz = 7;
    byte[sz+2] bb;
    SCREEN[idx++] = '0'+sizeof(bb)/sizeof(byte);

    word[] wb = { 1, 2, 3, 4 };
    SCREEN[idx++] = '0'+sizeof(wb)/sizeof(word);

    byte[] sa = "camelot";
    SCREEN[idx++] = '0'+sizeof(sa)/sizeof(byte);

    byte[] sb = { 'a', 'b', 'c', 0};
    SCREEN[idx++] = '0'+sizeof(sb)/sizeof(byte);


}