1subroutine foo(i)
2character c
3integer i
4character(1),parameter :: hex_chars(0:15)=&
5  (/'0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F'/)
6
7c = hex_chars(i)
8if (c.ne.'3') STOP 1
9end
10
11program strarray_1
12call foo(3)
13end
14