C++ Basic Data types
Submissions: 4628   Accuracy:

20.54%

  Difficulty: Basic   Marks: 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

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Vanshika
Author: Vanshika_pec


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.