typedef int * i
#include<stdio.h>
int main()
{
typedef int * i;
int j = 10;
i *a = &j;
printf("%d", **a);
int dd = 0;
scanf_s("%d", &dd);
return 0;
}
Compiler Error -> Initialization with incompatible pointer type.
The line typedef int *i makes i as type int *. So, the declaration of a means a is pointer to a pointer. The Error message may be different on different compilers.

浙公网安备 33010602011771号