📄 asize.c
字号:
/* Demonstrates the relationship between addresses and */
/* elements of arrays of different data types. */
#include <stdio.h>
/* Declare a counter and three arrays. */
int ctr;
short array_s[10];
float array_f[10];
double array_d[10];
int main( void )
{
/* Print the table heading */
printf("\t\tShort\t\tFloat\t\tDouble");
printf("\n================================");
printf("========================");
/* Print the addresses of each array element. */
for (ctr = 0; ctr < 10; ctr++)
printf("\nElement %d:\t%ld\t\t%ld\t\t%ld", ctr,
&array_s[ctr], &array_f[ctr], &array_d[ctr]);
printf("\n================================");
printf("========================\n");
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -