C# Programming - Datatypes - Discussion
Discussion Forum : Datatypes - General Questions (Q.No. 2)
2.
Which of the following is an 8-byte Integer?
Discussion:
8 comments Page 1 of 1.
Mohankumar said:
6 years ago
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".
Byte is 8 bit.
Short byte is 16 bit.
int byte is 32 bit.
long byte is 64 bit .
So, the ans is "B".
(2)
Asslam Bagwan said:
8 years ago
In C#
byte = 8bit
short = 16bit
int = 32bit
long = 64bit
So the correct answer for this Question is=> Option B) short.
byte = 8bit
short = 16bit
int = 32bit
long = 64bit
So the correct answer for this Question is=> Option B) short.
Krishan chandra gupta said:
8 years ago
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.
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.
(2)
Nisha said:
10 years ago
Int = 2 or 4 bytes.
Float = 4 bytes.
Char = 2 bytes.
Double = 8 bytes.
Short = 2 bytes.
Float = 4 bytes.
Char = 2 bytes.
Double = 8 bytes.
Short = 2 bytes.
Maheshdarji said:
1 decade ago
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.
Hence proved long is 8-Byte integer.
Passionateaboutprogramming said:
1 decade ago
char = 2 bytes.
int = 2 bytes.
long = 8 bytes.
short = 2 bytes.
byte = 8 bits.
It's very simple guys. :-).
int = 2 bytes.
long = 8 bytes.
short = 2 bytes.
byte = 8 bits.
It's very simple guys. :-).
REHAN KHAN said:
1 decade ago
integer = 4 byte.
long = 8 byte.
char = 2 byte.
short = 2 byte.
long = 8 byte.
char = 2 byte.
short = 2 byte.
Sunil said:
1 decade ago
1 byte=8 bits.
Integer=32 bits.
Char=16 bits.
Integer=32 bits.
Char=16 bits.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers