int sub(int i) {
static int j=i;
return j;
}

なんてのが可能だしね…可能だよね?