Home » C#.Net

Int32.MinValue property with example in C#

C# Int32.MinValue property: Here, we are going to learn about the MinValue property of int (Int32) struct with its description, syntax, and example.
Submitted by IncludeHelp, on October 02, 2019

Int32.MinValue Property

MinValue property is GET property to get the minimum value of System.Int32.

Syntax:

    int int.MinValue;

Return value:

int – it returns the minimum value of System.Int32.

Int32.MinValue Property Example in C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            int intMinVal = 0;

            intMinVal = int.MinValue;

            Console.WriteLine("Return Type is : " + int.MinValue.GetType());
            Console.WriteLine("Minimum value of System.Int32 : " + intMinVal);
        }
    }
}

Output

Return Type is : System.Int32
Minimum value of System.Int32 : -2147483648






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.




Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.