当前位置:网站首页>Classification of plastic surgery: short in long long long
Classification of plastic surgery: short in long long long
2022-07-05 08:33:00 【Bright moon and clear wind - continuous improvement】
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
short a = 0xffff;
int b = 0xffffffff;
long c = 0xffffffffL;
long long d = 0xffffffffffffffffLL;
printf("a = %hx\n", a);
printf("b = %x\n", b);
printf("c = %lx\n", c);
printf("d = %llx\n", d);
return 0;
}The operation results are as follows :

The size of memory occupied by shaping variables is related to the operating system :
short 2 byte
int 4 byte
long windows:4 byte linux32 position 4 byte linux64 position 8 byte
longlong 8 byte
边栏推荐
- Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off
- Briefly talk about the identification protocol of mobile port -bc1.2
- Tailq of linked list
- How to write cover letter?
- 实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
- Example 008: 99 multiplication table
- 实例001:数字组合 有四个数字:1、2、3、4,能组成多少个互不相同且无重复数字的三位数?各是多少?
- DokuWiki deployment notes
- On boost circuit
- DCDC circuit - function of bootstrap capacitor
猜你喜欢

Talk about the circuit use of TVs tube

Sword finger offer 06 Print linked list from end to end

L298N module use

STM32 summary (HAL Library) - DHT11 temperature sensor (intelligent safety assisted driving system)

【三层架构】

Sword finger offer 09 Implementing queues with two stacks

Explore the authentication mechanism of StarUML

实例008:九九乘法表

Bluebridge cup internet of things basic graphic tutorial - GPIO input key control LD5 on and off

DCDC circuit - function of bootstrap capacitor
随机推荐
Example 007: copy data from one list to another list.
Shell script
319. 灯泡开关
Old Wang's esp8266 and old Wu's ws2818 light strip
Detailed summary of FIO test hard disk performance parameters and examples (with source code)
Matlab tips (28) fuzzy comprehensive evaluation
Is the security account given by Yixue school safe? Where can I open an account
轮子1:QCustomPlot初始化模板
Chapter 18 using work queue manager (1)
leetcode - 445. Add two numbers II
实例004:这天第几天 输入某年某月某日,判断这一天是这一年的第几天?
How to write cover letter?
One question per day - replace spaces
Example 002: the bonus paid by the "individual income tax calculation" enterprise is based on the profit commission. When the profit (I) is less than or equal to 100000 yuan, the bonus can be increase
猜谜语啦(4)
Talk about the function of magnetic beads in circuits
How apaas is applied in different organizational structures
Tailq of linked list
696. 计数二进制子串
MySQL MHA high availability cluster