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.

posted @ 2021-10-05 15:56  xmydis  阅读(23)  评论(0)    收藏  举报