181⟩ How big is the data type int in .NET?
32 bits.
“Learn ASP Programming by Interview Questions and Answers.”
32 bits.
16 bits (Unicode).
Put an @ sign in front of the double-quoted string.
public static void Main ()
public static int Main ()
public static void Main ( string[] args )
public static int Main (string[] args )
int [ , ] myArray; //declaration
myArray = new int [5, 8]; //actual initialization
Current application.
Structs cannot be inherited.
Structs are passed by value, not by reference.
Struct is stored on the stack, not the heap.
Explain encapsulation.
The implementation is hidden, the interface is exposed.
Sbyte
There’s no conversion between 0 and false, as well as any other number and true, like in C/C++.
Stack
The references go on the stack, while the objects themselves go on the heap.
The value-type variables are not garbage-collected, they just fall off the stack when they fall out of scope, the reference-type objects are picked up by GC when their references go null.
Int32.Parse( string)
To pass it by reference.