Computer Science, asked by PrakasahPrince1003, 1 year ago

What is the sizeof(long int) (a) 4 bytes (b) 2 bytes (c) compiler dependent (d) 8 bytes?

Answers

Answered by SahimSha
0
Hey mate, here is your answer :


Size of Boolean type is 1 byte(s) Number of bits in a character: 8 Size of character types is 1 byte Signed char min: -128 max: 127 Unsigned char min: 0 max: 255 Default char is unsigned Size of short int types is 2 bytes Signed short min: -32768 max: 32767 Unsigned short min: 0 max: 65535 Size of int types is 4 bytes Signed int min: -2147483648 max: 2147483647 Unsigned int min: 0 max: 4294967295 Size of long int types is 4 bytes Signed long min: -2147483648 max: 2147483647 Unsigned long min: 0 max: 4294967295 Size of long long types is 8 bytes Signed long long min: -9223372036854775808 max: 9223372036854775807 Unsigned long long min: 0 max: 18446744073709551615.


Hope this answer helps you...
Answered by pankajkumar17pm
1

Size of long int is of 8 bytes ranging from -2,147,483,648 to 2,147,483,647.


pankajkumar17pm: This is applied for C++
Similar questions