通过指针在函数里改变数组的值
关键:将数组的地址送到函数中;其中数组名可以作为函数的首地址。 #include<stdio.h>int sort(int *p,int n){ int i,j,ret=0,temp; ...
关键:将数组的地址送到函数中;其中数组名可以作为函数的首地址。 #include<stdio.h>int sort(int *p,int n){ int i,j,ret=0,temp; ...
1.sin(a)类:a是弧度值; 2.abs(b):结果是b的绝对值; 3.exp(c):exp()用来计算以e为底的x次方值,即ex值,然后将结果返回。返回值: 返回e的x次方计算结果。 4. ...
#include<string.h> 1 strcpy #include <string.h> char *strcpy(char *str1, const char * ...
int * scanffile(FILE *fp,int n){ int i;static int array[10]; //因为array是局部变量,随scanffile()函数的结束,该内 ...