

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are the different data types of arrays in C#?
With C#, you can create an array of integers, chars, etc. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of the same type stored at contiguous memory locations. This type can be integer, char, float, etc.
The following is an array declaration showing the datatype usage −
datatype[] Name_of_array;
Here,
datatype is used to specify the type of elements in the array.
[ ] specifies the rank of the array. The rank specifies the size of the array.
Name_of_array − specifies the name of the array.
Set the integer array −
int[] a;
Set the double array −
double[] z;
- Related Questions & Answers
- What are different types of data in C language?
- What are different Perl Data Types?
- What are different types of constants in C++?
- What are the different types of psychotherapy?
- What are the different types of DBMS?
- What are the different types of ISDN?
- What are the types of arrays in Java?
- What are the different data types used in SQL queries?
- What are the different types of pointers in C language?
- What are the different types of functions in C Programming?
- What are the different types of keywords in C language?
- What are different types of interrupts?
- What are Different Types of Testing?
- What are different types of constants in C language?
- What are the different types of LED available?
Advertisements