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]); } }