Convert to int. It should be written as follows: int b = * (int *) a;
That is to say, the pointer A is first converted into an int pointer, and then the value is taken on this basis.