Given a String S. Find out which of the following basic C++ data types it represents and it's size (in bytes).
The possible data types are:
The string clearly represents char
and thus the size of char is displayed.
The string represents Double.
You don't need to read input or print anything. Your task is to complete the function BasicDataType() which takes String S as input parameter and displays the size (in bytes) of the datatype it represents.
Expected Time Complexity:O(N) Expected Auxillary Space:O(1)