↩ revert:

This commit is contained in:
lzy
2024-05-27 02:33:10 +08:00
parent 2336f88407
commit a277dec1fe
136 changed files with 606 additions and 606 deletions

View File

@@ -11,7 +11,7 @@ int main( )
int a[] = {5, 1, 7, 2, 8, 3};
int y;
int* p = &a[1];
int *p = &a[1];
y = (*--p)++;

View File

@@ -5,7 +5,7 @@
int main( )
{
char* str = "hello";
char *str = "hello";
printf("%d %d\n", sizeof(str), strlen(str));
// out: 8 5

View File

@@ -23,7 +23,7 @@ int main( )
int i = 1;
int j = 100;
const int* const p = &i;
const int *const p = &i;
//(F) p = &j;

View File

@@ -7,7 +7,7 @@ int main( )
{
int a[2][3] = {1, 2, 3, 4, 5, 6};
int i, j;
int* p = *a;
int *p = *a;
int(*q)[3] = a;

View File

@@ -7,12 +7,12 @@ int main( )
{
int i = 1;
int* p = &i;
int *p = &i;
// 相当于
// int *p;
// p = &i;
int** q = &p;
int **q = &p;
printf("i = %d\n", i);
printf("&i = %d\n", &i);

View File

@@ -3,7 +3,7 @@
int main( )
{
int* p;
int *p;
*p = 1;

View File

@@ -5,10 +5,10 @@
int main( )
{
char* name[5] = {"Follow me", "Basic", "Great", "Fortran", "Computer"};
char *name[5] = {"Follow me", "Basic", "Great", "Fortran", "Computer"};
// 指针数组
int i, j, k;
char* tmp;
char *tmp;
for (i = 0; i < 5 - 1; i++)
{