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

Actividad de Bienvenida. Programación II

jaorduz
1,351 views

LogoGCCyC

Contents

  1. Arrays
An array is a collection of...
which are the same...

Arrays

those elements can be related by different operators through the index. An example (it must be corrected) of an array:

#include <stdio.h>
int main() {
int myArray[5]={-10, -5, 0 , 5, 10}; i;
for(int i =0;i<=4;i++){
suma = myArray[i];
}
printf("Result = ", suma);
return 0;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check the previous code in order to find the 0, not the last value in the array.

Go Up

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