指针的 --
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 }
本文来自博客园,作者:Bytezero!,转载请注明原文链接:https://www.cnblogs.com/Bytezero/p/15071993.html