/* * structure2.c - initializing struct without user input */ #include #include int main(void) { struct EmpInfo // declare stuct with 2 elements { char name[13]; int sal; }; struct EmpInfo emp1 = {"linux guru", 7000}; // declare variable of struct type EmpInfo // initialize elements printf("Employee NAME: %s\tSALARY: %d\n", emp1.name, emp1.sal); return 0; }