Loading [Contrib]/a11y/accessibility-menu.js
Back
Close

C# [] Operator - Arrays and indexers

amiedd
1,101 views

C# [] Operator - Arrays and indexers

Code, Cosplay and Game - www.amiedd.com

using System;
class PotionStrength
{
// Array of Potion Strength values
private float[] potions = new float[10] { 56.2F, 56.7F, 56.5F, 56.9F, 58.8F,
61.3F, 65.9F, 62.1F, 59.2F, 57.5F };
public int Length
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

C# [] Operator - Arrays and indexers

Square brackets ([]) are used for arrays, indexers, and attributes. They can also be used with pointers.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants