当前位置:网站首页>3day
3day
2022-07-25 22:06:00 【denggongming】
Variable : Variables are storage space in memory , The quantity that often changes is stored in the space, which is called variable .
classification : integer constants 、 Floating-Point Literals 、 character constants 、 Boolean Literals 、 String constant
Define format : data type Variable name = initialize value
Such as : int a = 1;
Variable considerations :
1. Variable name cannot be defined repeatedly
2. A statement can define multiple variables , Separated by commas
3. Variables must be assigned before use
4. Definition float and long Variable considerations
5. Scope of variable
Constant : During program execution , The amount whose value will not change is called a constant
data type : The minimum information unit of a computer storage device is bit( position ), And the smallest storage unit is called byte( byte ).
1byte=8bit

Implicit conversion : Assign a value or variable that represents a small range of data to another variable that represents a large range of data .
Small data types , And large data types , The small one will be promoted to the big one , recompute .
byte short char Three kinds of data in operation , Whether or not there are higher data types , Will be promoted to int, And then we do the calculation .
Display conversion : Assign a value or variable that represents a large range of data to another variable that represents a small range of data .
Format : Target data type Variable name = ( Target data type ) Value or variable name ;


Code sharing


边栏推荐
- 虚拟内存与磁盘
- 『SignalR』.NET使用 SignalR 进行实时通信初体验
- dovecot 设置邮箱quota
- ZigBee development board (nxpzigbee Development)
- Redis master-slave architecture lock failure problem (master-slave)
- mouseEvent事件——mouse坐标描述——focus事件——input事件——节流(thorttle)——mouseWheel(滚轮事件)
- Redis foundation 2 (notes)
- The reisson distributed lock renewal failed due to network reasons, resulting in the automatic release of the lock when the business is still executing but the lock is not renewed.
- 面了个腾讯三年经验的测试员,让我见识到了真正的测试天花板
- 2022 love analysis ― bank digitalization practice report
猜你喜欢

Victoriametrics single node of kubernetes

Guiding principles of information security construction

Three ways to allocate disk space
![[hand torn STL] unordered_ set、unordered_ Map (encapsulated with hash table)](/img/33/08f7b72ce99e07821a1f4b6e594e13.png)
[hand torn STL] unordered_ set、unordered_ Map (encapsulated with hash table)

『Skywalking』. Net core fast access distributed link tracking platform

QML module not found

Ansible+cronab batch deployment patrol

MySQL - subquery - column subquery (multi row subquery)

『SignalR』.NET使用 SignalR 进行实时通信初体验

Open source RSS subscriber freshrss
随机推荐
Open source RSS subscriber freshrss
Golang: MVC models
[51nod1676 undirected graph isomorphism] undirected graph hash [easy to understand]
【汇编语言01】基础知识
[Fantan] how to design a test platform?
少儿编程 电子学会图形化编程等级考试Scratch一级真题解析(判断题)2022年6月
『SignalR』.NET使用 SignalR 进行实时通信初体验
C language left value and right value description [easy to understand]
Redis foundation 2 (notes)
2022 love analysis ― bank digitalization practice report
[dinner talk] those things that seem to be for the sake of the company but are actually incomprehensible (2: soft quality "eye edge" during interview)
[MAIXPY]kpu: load error:2005, ERR_ READ_ File: read file failed problem solving
手机端微信发朋友圈功能测试点总结
Whether the five distribution methods will produce internal fragments and external fragments
Guiding principles of information security construction
开户就可以购买收益在百分之六以上的理财产品了吗
golang : MVC之models
Acwing 866. determining prime numbers by trial division
GPON introduction and Huawei OLT gateway registration and configuration process
Solutions to the failure of win key in ikbc keyboard