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

 
 
5 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
 
 
I would like to thank you for your nicely written post, its informative and your writing style encouraged me to read it till end. Thanks
same day payday loans

03/22/2012
 
 
This article is something that will help me with my class assignment. It helped me to better understand another aspect of this topic. Thanks.
Stone Cleaning Redondo Beach

04/03/2012
 
 
I am doing a report on this subject. Your article is full of really useful information. I will make sure to come back to check out your posts for my next report. Cheers
sell my car

04/04/2012
 
 
Add an answer*
 
Your name
Email
 
Company: TGS
Location: Israel
C# int

add a question

arrow_blue


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