---
title: "What is Jagged Array in C#?"  
description: "What is Jagged Array in C#?"  
author: "Manoj Bhatt"  
published: 2016-02-09  
updated: 2020-09-20  
canonical: https://www.mindstick.com/interview/22983/what-is-jagged-array-in-c-sharp  
category: "c#"  
tags: ["c#", "asp.net", "array"]  
reading_time: 2 minutes  

---

# What is Jagged Array in C#?

In C#, A Jagged array is an one type of array of arrays.We can initialize a jagged array as −

```
int[][]  num = new  int [2][]{ new int[]{11,12,13}, new int[]{10,20,30,40}};
```

\
**Where, num is an array of two arrays of integers -** num[0] is an array of 3 integers and num[1] is an array of 4 integers.The method Length returns the number of arrays contained in the jagged array. A jagged array is an array of arrays, and therefore its elements are reference types and are initialized to null. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an "array of arrays."

## Answers

### Answer by Manoj Bhatt

In C#, A Jagged array is an one type of array of arrays.We can initialize a jagged array as −

```
int[][]  num = new  int [2][]{ new int[]{11,12,13}, new int[]{10,20,30,40}};
```

\
**Where, num is an array of two arrays of integers -** num[0] is an array of 3 integers and num[1] is an array of 4 integers.The method Length returns the number of arrays contained in the jagged array. A jagged array is an array of arrays, and therefore its elements are reference types and are initialized to null. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an "array of arrays."


---

Original Source: https://www.mindstick.com/interview/22983/what-is-jagged-array-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
