Home > Back-end >  Why this program run in vs2019 will save
Why this program run in vs2019 will save

Time:06-07

#include
Void Show_Array (int * p, int len)
{/* p [0]=1;//p [0]=* p;
P [2]=2;//p [2]==* p * (p + 2)====* (a + 2)//p==[I] a [1]. [I [p is the main function of a [I]
The return p [2]; */
int i=0;
For (I=0; I & lt; Len. I++) {
Printf (" % d \ n ", p [I]);
}
}
Int main ()
{
Int a [5]={1, 2, 3, 4, 5};
Show_Array (a, 5);//the address of the first write elements, the length of the second write elements, a equals & amp; A [0], & amp; A [0] is type int *//printf (" % d \ n ", a [0]).
return 0;
}

CodePudding user response:

Do you want to say an error, because in the Chinese comma (red part)
Void Show_Array (int * p, int
len){/* p [0]=1;//p [0]=* p;
P [2]=2;//p [2]==* p * (p + 2)====* (a + 2)//p==[I] a [1]. [I [p is the main function of a [I]
The return p [2]; */
int i=0;
For (I=0; I & lt; Len. I++) {
Printf (" % d \ n ", p [I]);
}
}

CodePudding user response:

reference 1st floor Italink response:
are you trying to say an error, because in the Chinese comma (red part)
Void Show_Array (int * p, int
len){/* p [0]=1;//p [0]=* p;
P [2]=2;//p [2]==* p * (p + 2)====* (a + 2)//p==[I] a [1]. [I [p is the main function of a [I]
The return p [2]; */
int i=0;
For (I=0; I & lt; Len. I++) {
Printf (" % d \ n ", p [I]);
}
}

The use of modern IDE, you should try to use the syntax highlighting features, such as the whole Angle of symbol if accidental use, can immediately see out from the IDE:
A tip is wrong, 2 it is colour

CodePudding user response:

refer to the second floor liups response:
Quote: refer to 1st floor Italink response:

Do you want to say an error, because in the Chinese comma (red part)
Void Show_Array (int * p, int
len){/* p [0]=1;//p [0]=* p;
P [2]=2;//p [2]==* p * (p + 2)====* (a + 2)//p==[I] a [1]. [I [p is the main function of a [I]
The return p [2]; */
int i=0;
For (I=0; I & lt; Len. I++) {
Printf (" % d \ n ", p [I]);
}
}

The use of modern IDE, you should try to use the syntax highlighting features, such as the whole Angle of symbol if accidental use, can immediately see out from the IDE:
One is the error message, and the second is color

Well, thank you! I went back to try oh

CodePudding user response:

reference weixin_44724728 reply: 3/f
Quote: refer to the second floor liups response:
Quote: refer to 1st floor Italink response:

Do you want to say an error, because in the Chinese comma (red part)
Void Show_Array (int * p, int
len){/* p [0]=1;//p [0]=* p;
P [2]=2;//p [2]==* p * (p + 2)====* (a + 2)//p==[I] a [1]. [I [p is the main function of a [I]
The return p [2]; */
int i=0;
For (I=0; I & lt; Len. I++) {
Printf (" % d \ n ", p [I]);
}
}

The use of modern IDE, you should try to use the syntax highlighting features, such as the whole Angle of symbol if accidental use, can immediately see out from the IDE:
One is the error message, and the second is color

Well, thank you! I went back to try oh


I this not VS2019 (vscode) also can consult

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related