Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) The keyword const , goes at the end of a function declaration, when you are using it to protect the data from being modified.
1) The keyword const, goes at the end of a function declaration, when you are using it to protect the data from being modified.
True or false
2) Which of the following is true about classes and structs?
a. | You cannot use the member of a struct for math calculations. | |
b. | By default, all members of a struct are public and all members of a class are private. | |
c. | An assignment operator is allowed on class variables, but not on struct variables. | |
d. | A struct is passed by value only, and a class is passed by reference only. | |
e. | None of the above. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started