+ 1

What is the default size

Can please anyone tell me that what is the default size for short and long modifiers.Pls give me in detail

14th Mar 2018, 11:53 AM
Suyash Pal
Suyash Pal - avatar
4 Antworten
+ 4
For that, you use the sizeof() operator. But usually, short is 2 bytes and long is 4 bytes.
14th Mar 2018, 11:56 AM
Solo Wanderer 4315
Solo Wanderer 4315 - avatar
+ 4
@Suyash please specify the language in your question for more answers. BTW you are asking about c++ data types right ?
14th Mar 2018, 12:24 PM
cHiRaG GhOsH
cHiRaG GhOsH - avatar
+ 2
Thanks
14th Mar 2018, 11:57 AM
Suyash Pal
Suyash Pal - avatar
+ 2
yes
14th Mar 2018, 2:54 PM
Suyash Pal
Suyash Pal - avatar