Question: What is the output of the code below: #include struct employee { char *name; }; struct employee newEmployee [2]; void main() { } Samuel;
What is the output of the code below: #include struct employee { char *name; }; struct employee newEmployee [2]; void main() { } "Samuel"; newEmployee [0]; printf("%s %s", newEmployee [0].name, newEmployee [1].name); new Employee[1].name = "Sam"; printf("%s %s", newEmployee [0].name, newEmployee [1].name); newEmployee [0].name newEmployee[1] = =
Step by Step Solution
3.43 Rating (156 Votes )
There are 3 Steps involved in it
The code snippet you have shown is written in C and contains a struct definition and a main function It performs some operations on an array of struct ... View full answer
Get step-by-step solutions from verified subject matter experts
