-->
当前位置:首页 > 题库

PROGRAMMING:Sizeof operator

Luz5年前 (2021-05-10)题库390
C language provides us with a function like operator sizeof, the basic use of which is sizeof (parameter). The parameters can be type names, expressions, etc., and the operation result is the number of bytes of the data of the type represented by the parameters in memory.
Please program to output the number of bytes of double, long double, long long, 3.14f, 3.14, 521, 521ll in memory.
Use the operator sizeof to calculate the above values.
###Output format:
There is a space between every two values. Don't output extra characters.
###Input example:
```in
```
###Output example:
```out
8 16 8 4 8 4 8
```







answer:If there is no answer, please comment