指针的 --

 1 指针的 --
 2 
 3 #include <stdio.h>
 4 int main()
 5 {
 6     int i;
 7     double score[5] = {10,20,32,40,50};
 8     double *ptr_score;
 9     ptr_score = &score[1];   // 20
10     ptr_score +=2;            //40
11     printf("%.2lf\t",*ptr_score);
12     ptr_score -=3;            //10
13     printf("%.2lf\t",*ptr_score);
14 }

 

posted on 2021-07-28 11:15  Bytezero!  阅读(35)  评论(0编辑  收藏  举报