I saw this code in a book, and I dont understand what it tries to do?

Code:
char code[] = "\x5e\xff.....\x8d";

int main() {
     int *var;
     var = (int *) &var + 2;
    (*var) = (int)code;
}
'*var' is a pointer and 'code' is an array. It is ok. but what is that '(int *) &code'. What he or she tries to do. What this line means?
i) &var is an address, what is (int *)&var ?
ii) and how can it be possible that (*var) = (int)code; I think it is like code below
Code:
int main() {
     int *ptr;
     *ptr = 5;
}
I would be grateful if you could help me.