橘子味的心
标题:const 关键字

const 关键字

#include <stdio.h>



int main() {



   const int  LENGTH = 10;

   const int  WIDTH = 5;

   const char NEWLINE = '\n';

   int area;  



   area = LENGTH * WIDTH;

   printf("value of area : %d", area);

   printf("%c", NEWLINE);



   return 0;

}

目录

分类