Maya is interested to learn programming languages. When she is learning, she had a doubt on how
Fantastic news! We've Found the answer you've been seeking!
Question:
Maya is interested to learn programming languages. When she is learning, she had a doubt on how to find the size of the variable. In C++, we have the sizeof() operator, which is used to get the size occupied by a variable or value. Now, write a C++ program to declare a variable of character, integer, float, and double type and print their respective sizes.
OUTPUT FORMAT:
Print the corresponding size of a character, integer, float and double.
SAMPLE OUTPUT:
1
4
4
8
Related Book For
Project Management A Systems Approach to Planning Scheduling and Controlling
ISBN: 978-0470278703
10th Edition
Authors: Harold Kerzner
Posted Date: