#include <stdio.h>

/**
* C语言中,数组的名称就是 一连串连续内存的起始地址,
* 因此给数组传递给函数,传递的就是数组元素类型的指针
*/ void hello_0(char msg[]);
void hello_1(char msg[]);
void hello_2(char *msg); int main() { char msg[] = "hello kitty";
char notice[] = "this is a notice to kitty.";
hello_0(msg);
hello_1(msg);
hello_2(msg); hello_0(notice);
hello_1(notice);
hello_2(notice);
return ;
} void hello_0(char msg[]) {
printf("0 msg is [%s]\n", msg);
} void hello_1(char msg[]) {
printf("1 msg is [%s]\n", msg);
} void hello_2(char *msg) {
printf("2 msg is [%s]\n", msg);
}

最新文章

  1. SQL查询每个表的字段数量
  2. Mybatis知识点总结
  3. 求两个数的最大公约数(Java)
  4. 使用XmlInclude解决WebService调用时无法识别子类的异常
  5. 一步步学习ASP.NET MVC3 (5)——View从Action中获得数据
  6. PHP remove,empty和detach区别
  7. [置顶] C++中RTTI机制剖析
  8. 微软开源PowerShell并支持Linux和OS X
  9. (7) 引用Objective-C class library
  10. 用 C++ 标准模板库(STL)的 vector 实现二叉搜索树(BST)
  11. Centos7 创建本地 docker 仓库极其遇到的问题
  12. SQL数字型注入代码审计
  13. HashMap 相关面试题及其解答
  14. 基于SDL2实现俄罗斯方块
  15. (7)Microsoft office Word 2013版本操作入门_常用技巧
  16. 浏览器跨域请求之credentials
  17. Web性能优化系列(2):剖析页面绘制时间
  18. 项目总结——MVC+MongoDB实现文件上传
  19. Laya资源加载小记
  20. Mongodb的使用(上)

热门文章

  1. 你所了解的Java线程池
  2. 日期相关类data,simpledataformat类
  3. 消息队列(五) ---RocketMQ-消息存储3
  4. Yii2.0 引入外部js css
  5. java redis 实现用户签到功能(很普通简单的签到功能)
  6. Shiro入门学习之自定义Realm实现授权(五)
  7. 关于 checkbox 的一些操作
  8. Centos7下载和安装教程
  9. 如何判断WLC的FUS版本
  10. Python学习第二十一课——Mysql 对数据库的基本操作