指针
文章平均质量分 76
爱吃肉的小白
小白,共同奔赴!
展开
-
指针操作及浅试
代码如下: #include<stdio.h> int main(void) { int urn[5] = { 100, 200, 300, 400, 500 };; int * ptr1, * ptr2, * ptr3; ptr1 = urn; ptr2 = &urn[2]; printf("point...原创 2022-05-23 11:41:10 · 92 阅读 · 0 评论 -
第一次应用指针,自定义函数为主函数值比大小
代码如下: #include<stdio.h> void larger_of(double *x,double *y); int main(void) { double a,b; printf("Enter tow float number:"); scanf("%lf %lf",&a,&b); printf("Data you input is %g and %g.\n",a,b); larger_of(&a,&...原创 2022-05-20 10:35:45 · 153 阅读 · 0 评论