Structure Direct Initialization

#include<stdio.h>
struct anik
{
    int age;
    float salary;

};

int main()
{
    struct anik std1 = {27, 25500.50}, std2 = {25, 22500.50} ;

    printf("First Person : \n");
    printf("Age : %d\n", std1.age);
    printf("Salary : %0.2f\n", std1.salary);

    printf("\nSecond Person : \n");
    printf("Age : %d\n", std2.age);
    printf("Salary : %0.2f\n", std2.salary);


    return 0;
}

Comments