ARRAYS in C.

 #include<stdio.h>


int main()
{
    int arr[] = {1,2,3,4,5,6,87};
    printf("%d", arr[0]);

    return 0;
}

OUTPUT:
1


#include<stdio.h>

int main()
{
    int arr[] = {1,2,3,4,5,6,87};
    printf("%d", arr[6]);

    return 0;
}

OUTPUT:
87

Comments

Post a Comment

Popular posts from this blog

C Program using continue statement

C program of WHILE Loop

NULL Pointer in C.

C Program using DO WHILE loop

C Program using SWITCH statement

New Animated Login or signup page made by HTML, CSS and JavaScript.

C Program to print multiplication table of any number.

C Language Travel Agency Manager Exercise.

STRUCTURE IN C PROGRAMMING.