1. 常量:在程序运行的过程中,其值不能被改变的量称为常量

    常量的分类和不同类型常量的表达:        

  数据类型  运算符表达式_#define

 

 

代码:

#define  PRICE 40
#include   <stdio.h>
void main()
{
  int num, total;
  num = 10;
  total = num*PRICE;
  printf("total=%d\n", total);
  getchar();
}

数据类型  运算符表达式_程序运行_02

 

变量

定义:

数据类型  运算符表达式_#include_03

 

变量的命名:

数据类型  运算符表达式_程序运行_04

 

 

变量的分类

数据类型  运算符表达式_#define_05

 

 

越努力越幸运