18
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
int i = -2147483648;
8
int j = 2147483647;
9
//int k = 4294967294; // compile-time error: Cannot implicitly convert type 'uint' to 'int'.
10
11
uint ui1 = 4294967295;
12
//uint ui2 = -1; // compile-time error
13
Console.WriteLine(Int32.MaxValue);
14
Console.WriteLine(Int32.MinValue);
15
Console.WriteLine(UInt32.MaxValue);
16
Console.WriteLine(UInt32.MinValue);
17
}
18
}
Cached Result
Compilation error (line 26, col 13): The name 'Console' does not exist in the current context
Compilation error (line 27, col 28): The name 'Console' does not exist in the current context
Compilation error (line 28, col 13): The name 'Console' does not exist in the current context
Compilation error (line 29, col 29): The name 'Console' does not exist in the current context
Compilation error (line 47, col 13): The name 'Console' does not exist in the current context
Compilation error (line 51, col 13): The name 'Console' does not exist in the current context
Compilation error (line 27, col 28): The name 'Console' does not exist in the current context
Compilation error (line 28, col 13): The name 'Console' does not exist in the current context
Compilation error (line 29, col 29): The name 'Console' does not exist in the current context
Compilation error (line 47, col 13): The name 'Console' does not exist in the current context
Compilation error (line 51, col 13): The name 'Console' does not exist in the current context