1. 常量:在程序运行的过程中,其值不能被改变的量称为常量
常量的分类和不同类型常量的表达:
代码:
#define PRICE 40 #include <stdio.h> void main() { int num, total; num = 10; total = num*PRICE; printf("total=%d\n", total); getchar(); }
变量
定义:
变量的命名:
变量的分类
1. 常量:在程序运行的过程中,其值不能被改变的量称为常量
常量的分类和不同类型常量的表达:
代码:
#define PRICE 40 #include <stdio.h> void main() { int num, total; num = 10; total = num*PRICE; printf("total=%d\n", total); getchar(); }
变量
定义:
变量的命名:
变量的分类
上一篇:Vue for循环 例子
下一篇:Tomcat服务安全加固
一、在屏幕上输出英文短句“Programming is fun.”。运行结果:二、输入半径,分
1.表达式计算机程序在处理数据会进行大量的计算,而数据的运算则需要用于满足各种数据处理的需求,c#的运算符数量多,,在
这一节,我们从 基础知识、赋值运算、小结 三个方面来学习。
本章目标掌握赋值运算符的使用掌握算术运算符的使用掌握关系运算符的使用掌握递增与递减运算符的使用掌握、“%”等。以下面的...
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M