Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Range of Datatypes

 
Thiru Thangavelu
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following statements are true.

1) The type "int" is a 32-bit signed integer value.
2) The type "short" is a 16-bit unsigned integer value.
3) The type "char" is a 16-bit Unicode character.
4) The type "float" is a 64-bit floating point value.
5) The type "long" is a 64-bit signed integer value.
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) The type "int" is a 32-bit signed integer value.
True
2) The type "short" is a 16-bit unsigned integer value.
False - short is signed.
3) The type "char" is a 16-bit Unicode character.
True - 2 byte (16 bits) unsigned Unicode character.
4) The type "float" is a 64-bit floating point value.
False - float is 32 bits. double is 64 bits.
5) The type "long" is a 64-bit signed integer value.
True
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic