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
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
Step by Step Solution
3.44 Rating (170 Votes )
There are 3 Steps involved in it
include u... View full answer
Get step-by-step solutions from verified subject matter experts
