C# int types

Question posted in Computer Software on 06 2010
Rate question difficulty level 1 Votes
please review the following:
1. int g = new Int16();
2. int g = new int();
3. int g = new Int32();
4. int g = new Int64();

which ones are legal and which are not

 
 
2 Answers
 
The only illegal statement is statement number 4

06/23/2010
 
 
You will get an error in statement 4 : cannot convert long to int

08/13/2011
 
 
Add an answer*
 
Your name
Email
 
Company: TGS
Location: Israel
C# int

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
Mercer 
---------------------------
---------------------------
---------------------------