TA贡献883条经验 获得超454个赞
格式化指示符 %p 是用于指针的,后面相应的参数就应该是指针。
ppp 本身是整型,不应直接传入。这样的代码一般能通过编译,但一定会有警告的。printf就会将这个整型值当作是指针来理解并输出,但这样的输出结果是没什么意义的。
&ppp 将ppp取地址后得到的就等于是指针,所以能匹配格式化指示符,printf应该可以正确打印出结果。
至于 %p 会把指针打印成什么格式,这是和平台相关的,一般会以十六进制格式打印出地址值。
TA贡献868条经验 获得超0个赞
AFNCIVBAU
KYDIJSMBJ
LSNFDKGCZ
QYUGBOKHY
VQETHAAGM
TKIQYYODS
ULNFNKNQZ
STRNNMPFR
SDFRGSLVU
RJHUGFLIR
WQYXPYIRU
YJBFENNCG
WASFTWFFP
LXPRPVFIR
ZQONFLEEH
SGLHQFYRR
GRQLDGMLY
MTEPHTMWC
EVKOXMFVI
EVIKFSBKK
KLDIGTZCL
GHPDSSLOR
AHJEMMLOE
PQFHQKNAK
ASRDOLPSM
KLXTIVISC
DGCINANBV
NHQPVOIZT
BCBRGATHU
VGSDPGQXN
CNTLAXBUB
JBNIOBEVZ
RTYUJJGJN
VWLRAKAAU
ITTJYLFYM
PAYDZZTQA
DVYMRURFZ
WTZLPYFZD
KVKPVOANE
NEUGEYPMN
CNTHNSFVW
YPLHJDGLS
ASUAFSKEV
THKGUEBHR
JRZHONKAW
ZNRGFUXUK
BBGVNSWCL
LMBPOQWWC
YCNMKKTJU
XLJRQSPIL
KEGBGIATT
MPYWONNTW
FTHYMPIRH
FNIGOOXFR
OIXVDQWFP
DACNVYEVZ
QGYTCSOEH
RBTBUNNKE
EFBUCLBLE
RCALUWWMF
NHPNFFLYR
NBGOGFFII
AHJRZZOYU
DLWUDCZIY
IGOGSRBAG
JZAFUNWCJ
UVEAPTWJA
ASNDPZPMN
WXTOAEHHS
FDIEJNAHO
SJZEARBHS
FTIEUHQEE
GRWVXEYBI
FXIEDQAKR
XLWSRVYLS
KVRDPCUYF
ZUYKMCZDU
HPRLDFIWG
UVXDZJMZJ
B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