记录no.28
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>;
//一维数组,在地址中连续存放
int main()
{
int arr[] = { 1,2,3,4,5,6,7,8,9,10 };//一个整型int占四个字节
int sz = sizeof(arr) / sizeof(arr[0]);
int i = 0;
/*for (i = 0; i < sz; i++)
{
printf("%d ", arr[i]);
}
for (i = sz-1; i >=0; i--)
{
printf("%d ", arr[i]);
}*/
for (i = sz - 1; i >= 0; i--)
{
printf("&arr[%d]=%p\n",i, &arr[i]);//%p地址打印符
}
return 0;
}