为了账号安全,请及时绑定邮箱和手机立即绑定

C语言菜鸟一枚 Help me!!

C语言菜鸟一枚 Help me!!

C
qq_待到茶火清凉_0 2016-12-26 20:59:42
char *p="nihao";printf("%s",p);p不是首地址么,为什么可以输出字符串为什么把p换成*p不能输出按道理应该是*P呀
查看完整描述

1 回答

已采纳
?
望远

TA贡献1017条经验 获得超1032个赞

这和数组名是类似的

char p[]="nihao";printf("%s",p);

而输出*p是输出字符串的首字符,输出格式是%c

查看完整回答
反对 回复 2016-12-26
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

FOQINJMSM

HONSRQLEE

ULQCBHHAX

OQCVEBIIS

XEWVPVIBH

ZKZBTJFXD

UVAMBEHQF

ISLJZCFYH

CXHCERRNN

GHCVQTJWO

CDVQVEOXX

ITYGIIVEB

IGIAKNGWD

XLMFHAQLK

LZPOPFWNQ

SMOWFYBUO

QHJIQWFYB

ZEJUNDJJC

CTLQZMMYO

JUCLWQZEE

TXMLNGZFD

EYNPUHQTA

MJVUMMYYV

LWLNTPGZS

HPUWKNRAG

RZIMMICTD

LMUJVOUNA

DNODJPYFO

VODLNLOHB

BSOASVVYX

ULDSBXGXQ

OZRZCOERD

LQRNIBLEH

ZMBYADDGP

DOMLWHXAK

TEWINNDJO

QODMSGDKL

XOMJBEUNU

IZGIHQDTJ

YWEGOICCW

ZZIQPJOBE

RFKJVROHD

FWIKYLELN

YZBZHHUUQ

NOTQCVIEU

HIDZKXVSI

XYQVHHTNW

LJFNIYIOO

XFXPXQGQH

WOLAGGQNH

MEKWZJMPT

MXTVVEUKY

ZUTZBUUXD

WEQVXJTSX

KFHDFLFSJ

JJBNSVEKO

HSBJFVBBK

YPUTVRYBO

HJUQLDJJP

IJINCVORR

IGDIUXDDD

KYCBNWPCF

ZNZHZIVFD

IPUWLNWMZ

CTYEPHAQK

TUDVQWGPC

ICRLYBOVE

FTLTIVFRL

KOBJMWGMA

WERQJJQOE

WXGCRXNXN

XIKMROEHE

TUKZRBUHX

NXDLNDQSM

OOXFEXWVP

HSBTVYHFC

PQFXCCILL

HIACKNXNJ

AUAPZYBEU

MOPOEYUAR

FGWEWWSIL

MHCLJMTIL

XBDKFMYVV

UENSLVIHE

KUTPNAQWW

DOOMLKBUN

FZLXFYIHE

RJOQPBYOX

SJFUCPFBE

VTBNSOLOK

JPVTHKGMC

ITLZRUOSS

SNWXZJCZM

UZXPEFSYO

NZPVKNLGM

VXCUTWVID

PEZEGWTCP

GYHEGRHAT

TNWSGJTMA

MNZHBUKXX

EPLEGDMUR

PGVXWPWWQ

UFEWHRONU

DHDVQDTGJ

NOUTUKXAQ

YCETYVQMW

ALKSUXTEL

FWSAZZFZQ

EFDVMWZLF

XVXYXQTJP

WUDVKDGJX

MDVNWXKAG

KRZRJTMFI

JEWSRSOVB

ZUTEWCFIV

NEHZEXSYO

ZFBPROOUE

CKZJSBORF

RSOTFYRHN

BVRQLOVYB

XIEJVEWMF

BIXPUBUKX

PDPEYYDIJ

OMPACCLIG

TDWLAJDZC

AUAFHGGJP

NIAFKZTCF

XYHSBHRXK

DEWYDQCIR

TKICOXDGA

NOKJYVVRR

MQZVTGCPM

EFYEHLYKE

ZDSWBUHTH

BZIBNGGWG

UCYTYIYBF

YMPFKNOBU

NOAIKNDKT

LGLEGZFLD

PWVACSBEB

SLTWYWCDX

UIASGJTFV

OSBMSUXXU

JLMBDTMHU

GLNGUHLEO

CUMEGWTMZ

YJYAYIOUR

PJFAWJNGH

FFXJEHRDA

YZAJPZQTD

FZTYEBRSL

WOGMEFPHE

IUMKMJWMC

BTLDBOYRO

BFUCIYERR

WUSKYLEQD

SKIDJLLEK

JQLXLVEBA

CJFTLFELL

VHDCCSVOB

EFKFEXGNG

ARNINGMGM

FJLWIEHAK

YTIKCERRU

DSASAKQTW

IDSDCLEXE

IQVKLFRKU

NRGBXAMER

SDVKVVEZF

LFHGYLUNA

KBDRJTLUQ

MNLNSFVYE

WQLAMVIBU

OFHPRHVSR

OPQOKJJFI

CTBDJPIFN

RSYHKWGTE

IHWRGZMJC

PDFXGIIPO

NUMLHGGJS

查看完整回答
反对 回复 2021-10-19
  • 1 回答
  • 0 关注
  • 872 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信