[ create a new paste ] login | about

Link: http://codepad.org/m4h0BgY3    [ raw code | output | fork ]

C, pasted on Dec 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <inttypes.h>

#define prog_uchar uint8_t
#define PROGMEM


const prog_uchar lookupTable[3][4] PROGMEM =
{
   {7, 2, 5, 25},    // x[0][0..3]
   {2, 7, 3, 2},     // x[1][0..3]
   {1, 1, 23, 2}     // x[2][0..3]
};

int main() {
    printf("x[0][3]=%d\n", lookupTable[0][3]);

    exit(0);
}


Output:
1
x[0][3]=25


Create a new paste based on this one


Comments: