C 语言实例 - 使用指针访问数组元素
C 语言教程
· 2019-02-21 07:58:27
使用指针访问数组元素。
实例
#include <stdio.h>
int main()
{
int data[5], i;
printf("输入元素: ");
for(i = 0; i < 5; ++i)
scanf("%d", data + i);
printf("你输入的是: \n");
for(i = 0; i < 5; ++i)
printf("%d\n", *(data + i));
return 0;
}
输出结果为:
输入元素: 1 2 3 5 4 你输入的是: 1 2 3 5 4
点击查看所有 C 语言教程 文章: https://www.codercto.com/courses/l/17.html
Where Wizards Stay Up Late
Katie Hafner / Simon & Schuster / 1998-1-21 / USD 16.00
Twenty five years ago, it didn't exist. Today, twenty million people worldwide are surfing the Net. "Where Wizards Stay Up Late" is the exciting story of the pioneers responsible for creating the most......一起来看看 《Where Wizards Stay Up Late》 这本书的介绍吧!