Write a C program to initialize an array take 7 elements


#include<stdio.h>
int main()
{
    int arr[7]={1,2,3,4,5,6,8}, i;
    printf("The elements of the array is: ");
    for(i=0; i<7; i++){
        printf("%d ", arr[i]);
    }
    return 0;
}


OUTPUT-
The elements of the array is: 1 2 3 4 5 6 8

Comments

Popular posts from this blog

Write A C Program To Delete A Single Element From An Array

Evolution of Computer Devices