0% found this document useful (0 votes)
20 views1 page

Using Arrays in Solidity

Uploaded by

ltuyisingize58
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

Using Arrays in Solidity

Uploaded by

ltuyisingize58
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Group 3

Group Members:

1. IRANKUNDA Elyssa
2. IRADUKUNDA GASHUMBA Jonathan
3. INEMA Valentine
4. ISHIMWE Amani Aime
5. IRADUKUNDA Simeon

Module: Apply blockchain fundamentals

Arrays in Solidity

In Solidity, arrays are used to store a fixed-size or dynamic collection of elements of the same type.
Arrays are similar to arrays in other programming languages, but they have specific rules and limitations
when used on the blockchain.

There are two types of arrays in Solidity:

1. Fixed-size arrays: The size of the array is determined when it is declared and cannot be changed.

2. Dynamic arrays: The size of the array can be changed at runtime (you can add or remove
elements).

Basic Array Operations in Solidity

 Accessing elements: Access elements in an array using an index.


 Modifying elements: Modify elements by using the index.
 Push elements: Add elements using the push function.
 Pop elements: Remove the last element from a dynamic array using the pop function.

You might also like