OpenJudge 02:Storage space size of floating-point data type

Description

Define the Float and Double type variables each, and output their storage space (unit: byte) in turn.

Input

none.

OUTPUT

One line, two integers, the storage space size of the two variables, is separated by a space.

Input Sample

OUTPUT SAMPLE

(Not provided) `

Answer

CPP

include

using namespace std;
int Main ()
{{
int E, F;
Float a;
double b;
e = sizeof (a);
f = sizeof (b);
COUT << E << "" << f << Endl;
Return 0;
}

Result

Used Memory: 128KB
Run time: 1ms
Language: G ++
Submit time: 2019-03-24 09:41:57

http://noi.openjudge.cn/ch0102/02/

OpenJudge 02:Storage space size of floating-point data type

https://blog.tsinbei.com/en/archives/534/

Author
Hsukqi Lee
Posted on

2022-07-03

Edited on

2022-08-04

Licensed under

CC BY-NC-ND 4.0

# Programing  Cpp  OpenJudge  NOI  NOIP

Comments

Name
Mail
Site
None yet