if would like to print the size of data type entered by user. how can i do so (without using case and if)
is it possible to store the data type in a string and print the size of data type in that string???
jatinkhandelwal
0
Newbie Poster
Recommended Answers
Jump to PostA user doesn't enter a data type. They enter data that is put into a variable which is defined by a data type at compile time. So at compile time the data type size is already defined and can be output using
sizeof([I]datatype/variable[/I])
.
All 4 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
jatinkhandelwal
0
Newbie Poster
L7Sqr
227
Practically a Master Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.