正在加载图片...
printf() conversion specifiers 号dor号i Treat expression as a decimal number ( with sign Treat expression as unsigned decimal number f Treat expression as double precision floating point number; print without exponent 号eOr号E Treat expression as double precision floating point number; print with exponent(base 10)-scientificnotation c Treat value of expression as the code for a single character is Treat expression as a pointer to a string Later in this course26 printf() conversion specifiers • %d or %i • Treat expression as a decimal number (with sign) • %u • Treat expression as unsigned decimal number • %f • Treat expression as double precision floating point number; print without exponent • %e or %E • Treat expression as double precision floating point number; print with exponent (base 10) — scientific notation • %c • Treat value of expression as the code for a single character • %s • Treat expression as a pointer to a string • … Later in this course
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有