Enter name and post of ‘N’ employees and display using structure in C-Program

#include <stdio.h>
struct employee 
{
    char name[50];
    char post[50];
};
int main() 
{
    int num_emp, i;
    printf("Enter number of employees: ");
    scanf("%d", &num_emp);
    struct employee emp[num_emp];
    // Prompt user to enter name and post of each employee
    for (i = 0; i < num_emp; i++) 
	{
        printf("Enter name of employee %d: ", i+1);
        scanf("%s", emp[i].name);
        printf("Enter post of employee %d: ", i+1);
        scanf("%s", emp[i].post);
    }
    // Display the information entered by the user
    printf("\nEmployee Information:\n");
    for (i = 0; i < num_emp; i++) 
	{
        printf("Employee %d\n", i+1);
        printf("Name: %s\n", emp[i].name);
        printf("Post: %s\n\n", emp[i].post);
    }

    return 0;
}