C++ Basic Data types
Basic Accuracy: 26.36% Submissions: 8349 Points: 1

Write a program to display the sizes of basic four datatypes i.e integer, double, float, character.

Input:
The first line of input contains integer T denoting the number of test cases. For each test case, the user can input any of the above data types.  

Output:
For each test case, there is a single line output displaying the size of that data type.

Constraints:
1<=T<=100

Example:
Input:

4
1
@
7.98
9.985647851
Output:
4
1
4
8

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.