码迷,mamicode.com
首页 > 其他好文 > 详细

数据类型 运算符表达式

时间:2018-01-07 00:52:54      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:过程   log   ota   http   技术分享   int   getc   定义   printf   

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

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

  技术分享图片

 

 

代码:

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

技术分享图片

 

变量

定义:

技术分享图片

 

变量的命名:

技术分享图片

 

 

变量的分类

技术分享图片

 

 

数据类型 运算符表达式

标签:过程   log   ota   http   技术分享   int   getc   定义   printf   

原文地址:https://www.cnblogs.com/guangzhou11/p/8215672.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!