C# Programming - Datatypes - Discussion

Discussion :: Datatypes - General Questions (Q.No.2)

2. 

Which of the following is an 8-byte Integer?

[A]. Char
[B]. Long
[C]. Short
[D]. Byte
[E]. Integer

Answer: Option B

Explanation:

No answer description available for this question.

Sunil said: (Sep 30, 2012)  
1 byte=8 bits.

Integer=32 bits.

Char=16 bits.

Rehan Khan said: (Apr 18, 2013)  
integer = 4 byte.

long = 8 byte.

char = 2 byte.

short = 2 byte.

Passionateaboutprogramming said: (Jul 11, 2013)  
char = 2 bytes.

int = 2 bytes.

long = 8 bytes.

short = 2 bytes.

byte = 8 bits.

It's very simple guys. :-).

Maheshdarji said: (Feb 20, 2015)  
int 32 is 4-Byte so indirectly int 64 is 8 Byte and indirectly int 64 is long.

Hence proved long is 8-Byte integer.

Nisha said: (Sep 12, 2015)  
Int = 2 or 4 bytes.

Float = 4 bytes.

Char = 2 bytes.

Double = 8 bytes.

Short = 2 bytes.

Krishan Chandra Gupta said: (Jun 17, 2017)  
Sbyte- 8bit = 1byte.
byte-8 bit = 1byte.
short-16bit = 2byte.
ushort-16bit = 2byte.
int-32bit = 4byte.
uint-32bit = 4byte.
long-64bit = 8byte.
ulong-64bit = 8byte.
char-16bit - 2byte.

Asslam Bagwan said: (Sep 21, 2017)  
In C#

byte = 8bit
short = 16bit
int = 32bit
long = 64bit

So the correct answer for this Question is=> Option B) short.

Mohankumar said: (Mar 18, 2019)  
In C#.

Byte is 8 bit.
Short byte is 16 bit.
int byte is 32 bit.
long byte is 64 bit .

So, the ans is "B".

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.