char greeting[] = {'H', 'e', 'l', 'l', 'o', '\0'};
char greeting[] = "Hello";
#include <stdio.h>

int main ()
{
char greeting[] = {'H', 'e', 'l', 'l', 'o', '\0'}; printf("Greeting message: %s\n", greeting ); return ;
}
#include <stdio.h>
#include <string.h> int main ()
{
char str1[] = "Hello";
char str2[] = "World";
char str3[];
int len ; /* 复制 str1 到 str3 */
strcpy(str3, str1);
printf("strcpy( str3, str1) : %s\n", str3 ); /* 连接 str1 和 str2 */
strcat( str1, str2);
printf("strcat( str1, str2): %s\n", str1 ); /* 连接后,str1 的总长度 */
len = strlen(str1);
printf("strlen(str1) : %d\n", len ); return ;
}

最新文章

  1. cf723c Polycarp at the Radio
  2. HTML图像映射
  3. CI分页,搜索之后翻页不能用问题
  4. Redis学习记录之————微博项目
  5. 2016 - 1- 22 NSURLConnetction --- GET请求
  6. 分享一些前端chm文档
  7. JavaScript高级---组合模式设计
  8. Android史上功能最全的日历控件
  9. [Neural Networks] (Convolutional Neural Networks)CNN-卷积神经网络学习
  10. jquery 自动触发事件 trigger
  11. hello Kotlin!
  12. 测试left join和where的优先级
  13. 2018-4-25 html基础知识
  14. 记一次idea启动tomcat后控制台乱码的坑
  15. JavaScript 字典
  16. Python shelve 模块
  17. Android Studio 加载网络图片
  18. Linux服务器tomcat启动maven项目
  19. Why-are-GPUs-well-suited-to-deep-learning
  20. tensorflow和python操作中的笔记

热门文章

  1. c++ 模板联系4
  2. 算法应用杂谈-xgboost的偏差
  3. svnkit-常用api
  4. pip常见使用方法
  5. ubuntu16.04 pcl安装教程
  6. Ctrl +c 脚本中
  7. keil5最新破解教程(可以使用到2032年哦!):
  8. thinkcmf2.2 火狐浏览器图片上传以及谷歌图片上传打开稍慢
  9. 下面介绍mysql中模糊查询的四种用法:
  10. 字符串中子序列出现次数(dp)