Interviews10 answers
What is the difference between int and int32?
10 Answers
Int16: 2 bytes
Int32 and int: 4 bytes
Int64 : 8 bytes
Bharathi RajaPosted Jan 19, 2018, 8:27 PM EST
int is a primitive type allowed by the C# compiler, whereas Int32 is the Framework Class Library type (available across languages that abide by CLS).
in c# we write int and in vb.net we write integer
SagarPosted Sep 21, 2016, 1:36 AM EDT
int32 allows null values where as int doesnt allow null values
Suresh Babu MaddelaPosted Aug 22, 2016, 10:09 AM EDT
Difference between int and Int32:
int is an alias name for Int32. it is short cut to right System.Int32 in c#.
both can be used in your program.
Deeksha PanditPosted Jun 16, 2016, 10:26 PM EDT
int is 64bit and int32 is 32bit
Sunil BabuPosted Apr 3, 2016, 4:17 AM EDT
int is a primitive data type in c# .net language
System.Int32 refers the base class of int in c# .net
This System.Int32 is base type for all the .net languages such as integer in vb.net and also other all the .net languages
to find out the base type of a data type we use typeof constant
as like below
Console.WriteLine(typeof(int))
typeof is a constant which will return the base type of the given data type
Srinivas PabballaPosted Aug 28, 2015, 12:35 AM EDT
For the Declaration Purpose we used int like int i = 1; but for the conversion purpose we have to use Convert.Int32(); Function because int32 is CTS function.
Pramod LawatePosted Aug 26, 2013, 9:36 AM EDT
"int" is a data type keyword defined by the language, C#.
Int32 is a data type defined by the .NET Common Type System (CTS).
Sonali ChougulePosted Aug 18, 2013, 9:44 PM EDT
int is the alias name for int32 in C#
PoornimaPosted Aug 6, 2013, 3:15 AM EDT
System is a base class for int32.
int i=10;
from the above instead of "int" i can write "system.int32" where system is a pre defined class.
Sreekanth ReddyPosted Jul 9, 2013, 10:24 AM EDT





