Actividad de Bienvenida. Programación II

jaorduz
998 views

Open Source Your Knowledge, Become a Contributor

Technology knowledge has to be shared and made accessible for free. Join the movement.

Create Content

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

Open Source Your Knowledge: become a Contributor and help others learn. Create New Content