#include<stdio.h>
int main()
{
int board;
int* p;
p = &board;
*p = 1;
printf("%d\n", board);
return 0;
}
#include<stdio.h>
int main()
{
int board[10];
int* p;
p = board;
*(p+1) = 1;
printf("%d\n", board[1]);
return 0;
}
#include<stdio.h>
int main()
{
int board[10][10];
int* p;
p = &board[0][0];
*(p+10+1) = 1;
printf("%d\n", board[1][1]);
return 0;
}
#include<stdio.h>
int main()
{
int** ptr;
int i;
int* p = &i;
ptr = &p;
**ptr = 1;
printf("%d\n", i);
return 0;
}
#include<stdio.h>
int main()
{
int i;
int* risks[10];
risks[1] = &i;
int** p;
p = &risks[0];
**(p + 1) = 1;
printf("%d\n", *risks[1]);
return 0;
}
#include<stdio.h>
int main()
{
int board[10];
int(*rusks)[10];
rusks = &board;
*(*rusks + 1) = 1;
printf("%d\n", board[1]);
return 0;
}