
- C# Basic Tutorial
- C# - Home
- C# - Overview
- C# - Environment
- C# - Program Structure
- C# - Basic Syntax
- C# - Data Types
- C# - Type Conversion
- C# - Variables
- C# - Constants
- C# - Operators
- C# - Decision Making
- C# - Loops
- C# - Encapsulation
- C# - Methods
- C# - Nullables
- C# - Arrays
- C# - Strings
- C# - Structure
- C# - Enums
- C# - Classes
- C# - Inheritance
- C# - Polymorphism
- C# - Operator Overloading
- C# - Interfaces
- C# - Namespaces
- C# - Preprocessor Directives
- C# - Regular Expressions
- C# - Exception Handling
- C# - File I/O
- C# Advanced Tutorial
- C# - Attributes
- C# - Reflection
- C# - Properties
- C# - Indexers
- C# - Delegates
- C# - Events
- C# - Collections
- C# - Generics
- C# - Anonymous Methods
- C# - Unsafe Codes
- C# - Multithreading
- C# Useful Resources
- C# - Questions and Answers
- C# - Quick Guide
- C# - Useful Resources
- C# - Discussion
How to find the Rank of a given Array in C#?
To find the rank of an array, use the Rank property.
Firstly, declare and initialize an array.
int[,] myArr = new int[3,3];
Now, get the rank.
myArr.Rank
Let us see the complete code −
Example
using System; class Demo { static void Main() { int[,] myArr = new int[3,3]; Console.WriteLine("Rank of Array : " + myArr.Rank); } }
Output
Rank of Array : 2
- Related Articles
- How to find the length and rank of a jagged array in C#?
- How to define the rank of an array in C#?
- How to find the rank of a matrix in R?
- Get rank of a three-dimensional array in C#
- C/C++ Program to find the sum of elements in a given array
- Rank of All Elements in an Array using C++
- Program to find sum of elements in a given array in C++
- How to find the rank of a vector elements in R from largest to smallest?
- How to find the sum of all elements of a given array in JavaScript?
- How to get the rank of a matrix in PyTorch?
- C++ code to find rank of student from score table
- Find mean of subarray means in a given array in C++
- How to find the distinct subsets from a given array by backtracking using C#?
- Write a program in C++ to find the most frequent element in a given array of integers
- C++ Program to Find the GCDs of given index ranges in an array

Advertisements