C program to print the marks of students using one dimensional array.

 #include<stdio.h>


int main()
{

int marks[4] = {343, 56, 89,45};

    for (int i = 0; i < 4; i++)
    {
        printf("the value of %d element of the array is %d\n", i, marks[i]);
       
    }

    return 0;
}

OUTPUT:
the value of 0 element of the array is 343 the value of 1 element of the array is 56 the value of 2 element of the array is 89 the value of 3 element of the array is 45

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.