• Post Reply Bookmark Topic Watch Topic
  • New Topic

Range of Datatypes  RSS feed

 
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.
 
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
 
I found a beautiful pie. And a tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!