Interview Questions on VB.Net with Answers Pdf - 2

Question: 6

Whether the C# support the pointer or not?

A third category of types called pointers is available for use only in unsafe code.

The keyword unsafe is used to perform the pointer operations with the C#.

Question: 7

How do I convert a string to an int in C#?

Here’s an example: using System;

Class StringToInt

{

Public static void Main ()

        {

String s = “105”;

Int x = Convert. ToInt32(s);

Console. WriteLine (x);

}

}

Related Questions