Question: CMPE-5 Last Name: Lab Section Tue/Wed/Thur: E-50 Obj ect-Oriented Concepts and Methodology, Midterm 2, Tarng 11/8/2018 First Name: ID: Total: 100 points Section A: TRU/FALSE
CMPE-5 Last Name: Lab Section Tue/Wed/Thur: E-50 Obj ect-Oriented Concepts and Methodology, Midterm 2, Tarng 11/8/2018 First Name: ID: Total: 100 points Section A: TRU/FALSE [2 point each, total 20 points) 1. If p1 is an integer pointer variable, with the value of 1000, p1+ changes p1 to point to the memory location 1001. Assume that the size of integers is 4 bytes. You can assign an array to a pointer variable. For example, int 'p: int a[10]: p-a; 2. 3. In the following statement, all the variables are pointers. int p1, p2; A function may return a structure. 4. 5. Class data members are almost always public. 6. Different classes may not have member functions with the same name. . Ifpl and p2 are both pointers that point to integers in memory, the condition plarp2 will be true if the values that are in those memory locations are the same. All operators can be overloaded. 8. 9. The following is a properly declared overloaded insertion operator for myClass. ostream& operator
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
