当前位置:网站首页>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;
}边栏推荐
- Wechat applet_ 8. View and logic
- 2342
- 数据标准化处理
- Server configuration estimation of core IOT Bluetooth AOA positioning system
- Markdown mermaid種草(1)_ mermaid簡介
- odoo15 Module operations are not possible at this time, please try again later or contact your syste
- easypoi
- internship:术语了解及着手写接口
- return new int[]{i + 1, mid + 1};return {i + 1, mid + 1};
- 输入分隔符
猜你喜欢

数论 --- 欧拉函数、筛法求欧拉函数、欧拉定理、费马小定理详细证明

【学习笔记】主成分分析法介绍
![[algorithm] I brushed two big factory interview questions and learned array again with tears in my eyes“](/img/13/1b49326d5fe79ed1e73a2b52e7c42f.png)
[algorithm] I brushed two big factory interview questions and learned array again with tears in my eyes“

集合之ArrayList

ArrayList of collection

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

Severity code description project file line suppress status error lnk2038 detected a mismatch of "runtimelibrary": the value "md\u dynamicrelease" does not match the value "mdd\u dynamicde"

R language GLM generalized linear model: logistic regression, Poisson regression fitting mouse clinical trial data (dose and response) examples and self-test questions

Analysis of all knowledge points of TCP protocol in network planning

SQL server2019 create a new SQL server authentication user name and log in
随机推荐
方 差 分 析
怎么理解云原生数据库的快速迭代?
Troubleshooting of pyinstaller failed to pack pikepdf
2022焊工(初级)特种作业证考试题库及答案
How to obtain the coordinates of the aircraft passing through both ends of the radar
Markdown mermaid种草(1)_ mermaid简介
two thousand three hundred and forty-two
【学习笔记】因子分析
Server configuration estimation of core IOT Bluetooth AOA positioning system
2280.Cupboards
easypoi
1002_20181019
SaaS sales upgrade under the new situation | tob Master Course
Win 10 create a gin framework project
Kaggle腸胃道圖像分割比賽baseline
【学习笔记】主成分分析法介绍
Number theory -- detailed proof of Euler function, sieve method for Euler function, Euler theorem and Fermat theorem
JSP to get the value in the session
员工薪资管理系统
怎么理解云原生数据库的易用性?