arrays in c programming

 #include <stdio.h>

#include <stdlib.h>


int main()

{


    int arraynumber[]={3,5,7,8,23,64,75,73};


    //expects to output the index 7 which is 73. note that the index starts from 0 which is 3.

    printf("%d", arraynumber[7]);


    //printf("Hello world!\n");

    return 0;

}


Comments

Popular posts from this blog

Using Struct C

for loop with index in C