Question: c language question one image contains code while the other contain options. typedef struct t_emp { char firstName[ 20 ]; char lastName [ 20 ];

c language question one image contains code while the other contain options.  c language question one image contains code while the other contain
options. typedef struct t_emp { char firstName[ 20 ]; char lastName [

typedef struct t_emp { char firstName[ 20 ]; char lastName [ 20 ]; unsigned int age; char gender; double hourlysalary; }Employee; // structure definition For the above structure definition and the following declarations: Employee emp [10] : Employee ptr = emp: following code correctly assigns 'lastName of the second element of the array, Employee emp [10] ; Employee* ptr = emp; following code correctly assigns 'lastName' of the second element of the array. strncpy(lastName[1], "John"); Optr++; ptr->strcpy(lastName, "John"); strcpy(ptr->lastName, "Baptist"); ptr++; strcpy(ptr->lastName, "Baptist"); None of these

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!