习题8.1
来源:互联网 发布:php相册管理系统源码 编辑:程序博客网 时间:2024/05/21 21:44
#include <stdio.h>void Func(int b[]){ int j; for (j=0;j<4;j++) { b[j]=j; }}int main(){ static int a[]={5,6,7,8},i; Func(a); for(i=0;i<4;i++) { printf ("%d",a[i]); } return 0;}
结果如下:
心得体会:
1 学会一维数组的定义。
2 明白下标运算符的使用。
3 int b分别表示类型,数组名,其中[]里如果有数字表示元素个数。
阅读全文
0 0
- 习题8.1
- 习题8.1
- 习题8.1
- 习题8.1
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 习题
- 分答项目_技能点:微擎模式对话框1
- qwe
- Coursera Machine Learning 第六周编程week6 ex5Regularized Linear Regression and Bias/Variance编程全套满分题目+注释选做
- Python使用优先队列,树结构实现哈夫曼算法(哈夫曼树)
- js获取当前用户IP
- 习题8.1
- 目标检测定位识别相关
- leetCode13:Roman to Integer
- 数据库-5 求员工连续工作天数
- 资源——关于Spring加载classpath与classpath*的过程剖析(五)
- Windows 线程池
- c++sort函数的用法
- 第十六周java作业--网络编程
- Zookeepr启动异常:Error contacting service. It is probably not running.