subject

Given the following class definition and the variable declaration: class employee
char *name;
long id; }
class manager {
employee empl;
char* rank; } x

Which of the following assignment statement is correct?

a. x. empl->id = 12345;
b. x. id = 12345;
c. x->id = 12345;
d. x. empl. id = 12345;

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 04:00
When you collaborate or meet with a person or group online, it is called
Answers: 1
question
Computers and Technology, 23.06.2019 02:50
Thereโ€™s only one game mode that stars with the letter โ€˜eโ€™ in cs: go. which of the options below is it?
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Consider the usual algorithm to convert an infix expression to a postfix expression. suppose that you have read 10 input characters during a conversion and that the stack now contains these symbols: (5 points) | | | + | | ( | bottom |_*_| now, suppose that you read and process the 11th symbol of the input. draw the stack for the case where the 11th symbol is
Answers: 2
question
Computers and Technology, 25.06.2019 06:30
During which stage do you think is the best time for a company to purchase an emerging technology
Answers: 1
You know the right answer?
Given the following class definition and the variable declaration: class employee
char *name;...
Questions
question
Mathematics, 08.10.2021 01:30
question
Mathematics, 08.10.2021 01:30
Questions on the website: 13722367