logo

Crowdly

Suppose we have the following program, running on a 64-bit computer: #include<...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Suppose we have the following program, running on a 64-bit computer:

#include<stdio.h>

#include<string.h>

typedef struct {

int id;

char name[52];

float salary;

} Employee;

void printEmployee(Employee e) {

printf("ID: %d\n", e.id);

printf("Name: %s\n", e.name);

printf("Salary: %.2f\n", e.salary);

}

int main() {

Employee e1;

int e1ID = 1;

e1.id = e1ID;

strcpy(e1.name, "John Doe");

float e1Sal = 50000.00;

e1.salary = 50000.00;

printEmployee(e1);

Employee* e1Ptr = &e1;

return 0;

}

 

Select the correct statement about the size of variables in the main function from the options below:

0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learning.monash.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!