1. I am getting garbage value when I display the records.
2. I have to create a database of students in C using array of structures and without pointers.
3. Is there any other way of doing this?
4. How to use array of structures?

```
#include <stdio.h>

struct student {
    char first_name[10],last_name[10];
    int roll;
    char address[20];
    float marks;
};

void accept(struct student);
void display(struct student);

void main() {
    struct student S[10];
    int n, i;
    printf("Enter the number of records to enter : ");
    scanf("%d", &n);

    for (i = 0; i < n; i++) {
        accept(S[i]);
    }

    for (i = 0; i < n; i++) {
        display(S[i]);
    }
}

void accept(struct student S) {
    scanf("%s", S.first_name);
    scanf("%s", S.last_name);
    scanf("%d", &S.roll);
    scanf("%s", S.address);
    scanf("%f", &S.marks);
}

void display(struct student S) {
    printf("\n%s", S.first_name);
    printf("\n%s", S.last_name);
    printf("\n%d", S.roll);
    printf("\n%s", S.address);
}

```