当前位置:网站首页>Various types of long
Various types of long
2022-06-28 20:13:00 【Zaltana】
Please write a simple program , Output int,float,double and char Size .
Format
Input format : nothing
Output format : Output points 4 That's ok , Output, respectively, int,float,double and char Size
Examples
Input : nothing
Output :Size of int:4 bytes
Size of float: 4 bytes
Size of double: 8 bytes
Size of char: 1 byte
#include<bits/stdc++.h>
using namespace std;
int main( )
{
int a;
float b;
double c;
char d;
printf("Size of int: %d bytes\n",sizeof(a));
printf("Size of float: %d bytes\n",sizeof(b));
printf("Size of double: %d bytes\n",sizeof(c));
printf("Size of char: %d byte\n",sizeof(d));
return 0;
}边栏推荐
- 28 rounds of interviews with 10 companies in two and a half years
- R语言GLM广义线性模型:逻辑回归、泊松回归拟合小鼠临床试验数据(剂量和反应)示例和自测题
- 新形势下的SaaS销售升级|ToB大师课
- 核芯物联蓝牙aoa定位系统服务器配置估算
- csdn涨薪技术-Selenium自动化测试全栈总结
- Server configuration estimation of core IOT Bluetooth AOA positioning system
- Windows 64 bit download install my SQL
- Is it safe for CICC fortune to open an account? Let's talk about CICC fortune
- 管道 | 与重定向 >
- 【324. 摆动排序 II】
猜你喜欢

H5 sunflower operation
![return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};](/img/6a/45a4494276deba72ef9833818229f5.png)
return new int[]{i + 1, mid + 1}; return {i + 1, mid + 1};

C # application interface development foundation - form control

bluecmsv1.6代码审计

Are you still paying for your thesis? Come and join me

How does redis implement inventory deduction? How to prevent oversold?

C # connect to the database to complete the operation of adding, deleting, modifying and querying

计网 | 一文解析TCP协议所有知识点

Markdown mermaid种草(1)_ mermaid简介

30讲 线性代数 第四讲 线性方程组
随机推荐
return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};
QSP读取标签配置错误问题
2022 welder (elementary) special operation certificate examination question bank and answers
TcWind 模式设定
2022年4月10日--使用C#迈出第一步--使用C#从.NET类库调用方法(没看懂)
2788.Cifera
算力时代怎么「算」?「算网融合」先发优势很重要!
Tcwind mode setting
Why does next() in iterator need to be forcibly converted?
How strong a mathematical foundation does deep learning need?
Server configuration estimation of core IOT Bluetooth AOA positioning system
Windows 64 bit download install my SQL
[algorithm] I brushed two big factory interview questions and learned array again with tears in my eyes“
2022茶艺师(中级)考试模拟100题及模拟考试
5G NR MBS架构介绍
【324. 摆动排序 II】
ComparisonChain-文件名排序
【算法篇】刷了两道大厂面试题,含泪 ”重学数组“
The severity code indicates that the project file line prohibits the display of status errors. C1047 object or library file ".Lib" is different from other objects (such as "x64\release\main.obj")
类加载机制与对象的创建