fig22_07.c
来自「经典vc教程的例子程序」· C语言 代码 · 共 23 行
C
23 行
/* Using the p, n, and % conversion specifiers */
#include <stdio.h>
main()
{
int *ptr;
int x = 12345, y;
ptr = &x;
printf("The value of ptr is %p\n", ptr);
printf("The address of x is %p\n\n", &x);
printf("Total characters printed on this line is:%n", &y);
printf(" %d\n\n", y);
y = printf("This line has 28 characters\n");
printf("%d characters were printed\n\n", y);
printf("Printing a %% in a format control string\n");
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?