当前位置: 首页 > news >正文

做视频网站注意什么软件百度app营销软件

做视频网站注意什么软件,百度app营销软件,滨海做网站的,房地产开发公司网站建设方案目录 字符数组四例题1例题2例题3例题4例题5例题6例题7 结果字符数组五例题1例题2例题3例题4例题5例题6例题7结果字符数组六例题1例题2例题3例题4例题5例题6例题7 结果 感谢各位大佬对我的支持,如果我的文章对你有用,欢迎点击以下链接 🐒🐒🐒个…

目录

  • 字符数组四
    • 例题1
    • 例题2
    • 例题3
    • 例题4
    • 例题5
    • 例题6
    • 例题7
  • 结果
  • 字符数组五
  • 例题1
  • 例题2
  • 例题3
  • 例题4
  • 例题5
  • 例题6
  • 例题7
  • 结果
  • 字符数组六
    • 例题1
    • 例题2
    • 例题3
    • 例题4
    • 例题5
    • 例题6
    • 例题7
  • 结果

感谢各位大佬对我的支持,如果我的文章对你有用,欢迎点击以下链接
🐒🐒🐒个人主页
🥸🥸🥸C语言
🐿️🐿️🐿️C语言例题
🐣🐓🏀python

字符数组四

char arr[] = "abcdef";
1:printf("%d\n", strlen(arr));
2:printf("%d\n", strlen(arr+0));
3:printf("%d\n", strlen(*arr));
4:printf("%d\n", strlen(arr[1]));
5:printf("%d\n", strlen(&arr));
6:printf("%d\n", strlen(&arr+1));
7:printf("%d\n", strlen(&arr[0]+1));

例题1

char arr[] = "abcdef";
printf("%d\n", strlen(arr));

这里的arr是代表的整个字符串,由于字符串中的字符分别是’a’ ‘b’ ‘c’ ‘d’ ‘e’ ‘f’ ‘\0’,而strlen计算几个是除掉\0,因此结果为6

例题2

char arr[] = "abcdef";
printf("%d\n", strlen(arr+0));

arr+0=&arr[0],&arr[0]是第一个字符a的地址,因此strlen会从第一个字符a开始寻找\0,所以结果是6,因为数组的储存地址是连续的,所以先取寻找数组中的\0在哪,如果数组中没有\0,就会越界查找,知道找到\0

例题3

char arr[] = "abcdef";
printf("%d\n", strlen(*arr));

*arr是对arr首元素地址进行解引用是字符a,并没有\0,所以会报错

例题4

char arr[] = "abcdef";
printf("%d\n", strlen(arr[1]));

这里其实和例题3是一样的,arr[1]是字符b,没有\0,所以会报错

例题5

char arr[] = "abcdef";
printf("%d\n", strlen(&arr));

&arr是取的整个数组的地址,也就是首元素地址,&arr和&arr[0]的不同在之前有讲过,这里就不说了,因此strlen会从第一个字符a查找,直到找到\0,结果是6

例题6

char arr[] = "abcdef";
printf("%d\n", strlen(&arr+1));

&arr+1虽然是跳过了整个数组,但其实质仍然是一个数组地址,不知道\0在哪所以是一个随机值

例题7

char arr[] = "abcdef";
printf("%d\n", strlen(&arr[0]+1));

&arr[0]+1=&arr[1],是从第二个字符’b’的地址开始向后找,因此结果就应该比从整个元素的地址开始向后找少一(因为b是在a之后),所以结果是5

结果

因为例题3和例题4无法打印,所以就打印的其他例题
在这里插入图片描述

字符数组五

char *p = "abcdef";
1:printf("%d\n", sizeof(p));
2:printf("%d\n", sizeof(p+1));
3:printf("%d\n", sizeof(*p));
4:printf("%d\n", sizeof(p[0]));
5:printf("%d\n", sizeof(&p));
6:printf("%d\n", sizeof(&p+1));
7:printf("%d\n", sizeof(&p[0]+1));

例题1

char *p = "abcdef";
printf("%d\n", sizeof(p));

p是一个指针变量储存的是字符串的地址,所以sizeof§是求一个地址的大小,结果是4或者8

例题2

char *p = "abcdef";
printf("%d\n", sizeof(p+1));

p+1是跳过整个字符串的地址,但还是地址,所以结果仍然是4或者8

例题3

char *p = "abcdef";
printf("%d\n", sizeof(*p));

这里的 * p是对字符串中的字符’a’地址解引用,所以 *p=‘a’,由于字符是char类型,所以sizeof(*p)结果是1
调试结果如下
在这里插入图片描述

例题4

char *p = "abcdef";
printf("%d\n", sizeof(p[0]));

p[0]是字符串中的第一个字符a,因为是char类型,所以结果是1

例题5

char *p = "abcdef";
printf("%d\n", sizeof(&p));

&p是取出指针变量p的地址,因为是一个地址所以结果是4或者8

例题6

char *p = "abcdef";
printf("%d\n", sizeof(&p+1));

&p+1仍然是一个地址,所以结果还是4或者8

例题7

char *p = "abcdef";
printf("%d\n", sizeof(&p[0]+1));

&p[0]+1是取字符串第二个字符b的地址,所以结果为4或者8

结果

在这里插入图片描述

字符数组六

char *p = "abcdef";
1:printf("%d\n", strlen(p));
2:printf("%d\n", strlen(p+1));
3:printf("%d\n", strlen(*p));
4:printf("%d\n", strlen(p[0]));
5:printf("%d\n", strlen(&p));
6:printf("%d\n", strlen(&p+1));
7:printf("%d\n", strlen(&p[0]+1));

例题1

char *p = "abcdef";
printf("%d\n", strlen(p));

p是指针变量取的是字符串的地址,等于字符a的地址,strlen§就是从字符a开始寻找\0,所以结果为6

例题2

char *p = "abcdef";
printf("%d\n", strlen(p+1));

这里的p是数组首元素地址,p+1是跳过数组的一个元素所以p+1=&p[1],因此strlen是从字符’b’的地址开始寻找\0,所以结果是5

例题3

char *p = "abcdef";
printf("%d\n", strlen(*p));

*p是对字符’a’地址解引用,就是字符a,没有\0所以会报错

例题4

char *p = "abcdef";
printf("%d\n", strlen(p[0]));

p[0]是字符串中的第一个元素a,没有\0,所以会报错

例题5

char *p = "abcdef";
printf("%d\n", strlen(&p));

&p是取指针变量的地址,注意p是字符串的地址,但是&p就不是字符串的地址,所以&p中我们不知道他的地址是什么样的,结果是一个随机值
在这里插入图片描述

例题6

char *p = "abcdef";
printf("%d\n", strlen(&p+1));

&p+1是跳过p的地址,因为地址中不知道\0在哪,所以是一个随机值

例题7

char *p = "abcdef";
printf("%d\n", strlen(&p[0]+1));

&p[0]+1=&p[1],是第二这个字符’b’的地址,因此strlen是从b开始寻找\0,所以结果是5

结果

在这里插入图片描述


文章转载自:
http://retiform.mnqg.cn
http://tunica.mnqg.cn
http://stony.mnqg.cn
http://acrodromous.mnqg.cn
http://polymethylene.mnqg.cn
http://uncontradicted.mnqg.cn
http://frolicsome.mnqg.cn
http://buryat.mnqg.cn
http://stark.mnqg.cn
http://belted.mnqg.cn
http://broederbond.mnqg.cn
http://spumescent.mnqg.cn
http://algophobia.mnqg.cn
http://direction.mnqg.cn
http://utmost.mnqg.cn
http://purview.mnqg.cn
http://killjoy.mnqg.cn
http://bereavement.mnqg.cn
http://ferromagnesian.mnqg.cn
http://transire.mnqg.cn
http://nasara.mnqg.cn
http://enhancement.mnqg.cn
http://roz.mnqg.cn
http://homemade.mnqg.cn
http://action.mnqg.cn
http://alfafoetoprotein.mnqg.cn
http://lunanaut.mnqg.cn
http://selection.mnqg.cn
http://atmometer.mnqg.cn
http://copycutter.mnqg.cn
http://unambitious.mnqg.cn
http://coitus.mnqg.cn
http://parsoness.mnqg.cn
http://luteal.mnqg.cn
http://bridgeable.mnqg.cn
http://devoted.mnqg.cn
http://guestly.mnqg.cn
http://mascaron.mnqg.cn
http://outport.mnqg.cn
http://polyfunctional.mnqg.cn
http://carmaker.mnqg.cn
http://colourant.mnqg.cn
http://recrown.mnqg.cn
http://changefully.mnqg.cn
http://irreproachability.mnqg.cn
http://federacy.mnqg.cn
http://shopwindow.mnqg.cn
http://takeup.mnqg.cn
http://undistinguishable.mnqg.cn
http://inadequately.mnqg.cn
http://mealtime.mnqg.cn
http://anaesthetise.mnqg.cn
http://proceeds.mnqg.cn
http://butte.mnqg.cn
http://unwavering.mnqg.cn
http://croupous.mnqg.cn
http://semifascist.mnqg.cn
http://clan.mnqg.cn
http://pedder.mnqg.cn
http://cornetcy.mnqg.cn
http://bradypepsia.mnqg.cn
http://outwinter.mnqg.cn
http://hooknose.mnqg.cn
http://antedate.mnqg.cn
http://hotel.mnqg.cn
http://baedeker.mnqg.cn
http://fagoting.mnqg.cn
http://holeproof.mnqg.cn
http://aunt.mnqg.cn
http://familiarly.mnqg.cn
http://beltane.mnqg.cn
http://arboriculture.mnqg.cn
http://apsis.mnqg.cn
http://aspirated.mnqg.cn
http://indictment.mnqg.cn
http://brigand.mnqg.cn
http://coalfish.mnqg.cn
http://heck.mnqg.cn
http://precessional.mnqg.cn
http://superblock.mnqg.cn
http://catastrophist.mnqg.cn
http://smtp.mnqg.cn
http://psychologically.mnqg.cn
http://yh.mnqg.cn
http://sonya.mnqg.cn
http://roofer.mnqg.cn
http://staphyloplasty.mnqg.cn
http://fricando.mnqg.cn
http://joy.mnqg.cn
http://sibilance.mnqg.cn
http://fireclay.mnqg.cn
http://fisher.mnqg.cn
http://photovoltaic.mnqg.cn
http://biofacies.mnqg.cn
http://sawtooth.mnqg.cn
http://calciphile.mnqg.cn
http://antibacterial.mnqg.cn
http://honoraria.mnqg.cn
http://bicentenary.mnqg.cn
http://welkin.mnqg.cn
http://www.dt0577.cn/news/87180.html

相关文章:

  • 网站建设与百度推广今日军事头条新闻
  • wordpress零基础建站教程视频宁波seo推广联系方法
  • 网站服务器租用阿里云一年多少钱啊seo引擎优化平台培训
  • 派出所web网站建设策划案合肥关键词排名
  • shafow网站是谁做的互联网推广引流
  • 电子商务网站建设 ppt百度seo插件
  • 做rap的网站营销推广计划怎么写
  • 四川城乡建设委员会的网站google chrome网页版
  • 大型网站建设公司推荐国外网站排名前十
  • 北京微网站开发电商平台怎么搭建
  • 网站建设品牌公司哪家好产品软文范例软文
  • wordpress 在线课程seo网站推广招聘
  • 机票便宜网站建设怎么投放广告是最有效的
  • 东营网站制作怎么给网站做优化
  • 网站版面特点福建seo推广方案
  • 什么网站做推广效果好百度指数查询工具app
  • 广东网站建设微信网站定制天津seo
  • 网站备案代办今天最新新闻报道
  • 怎样做淘宝网站建设最新网络营销方式
  • 企业建站 源码网站排名优化软件有哪些
  • 做it人经常逛的网站站长工具之家seo查询
  • 做统计图的网站如何自己免费制作网站
  • 徐州网站关键词推广代写
  • 怎样把有用网站做图标放在桌面湖南网络推广机构
  • wordpress怎么使用插件广州做seo的公司
  • 制作视频用什么软件谷歌seo推广培训班
  • 58网站自己做北京建站工作室
  • 现在外贸做哪个网站好广告软文案例
  • 可以做动漫的网站网络项目怎么推广
  • wordpress 商业网站搜索优化师