Question: write the call statement using correct syntax (2 points each). #include using namespace std; class S { public: void one () { }; }
write the call statement using correct syntax (2 points each). #include using namespace std; class S { public: void one () { }; } cout < < "that's right "; }; int main() { sa; s* b; b = new S; s c[4]; // function calls go here return 0; 1. Call function one using object a. 2. Call function one using b. 3. Call function one using the second element of c without using the pointer operator. 4. Call the function named one that is in the object at index 1 of c using the pointer operator.
Step by Step Solution
3.37 Rating (153 Votes )
There are 3 Steps involved in it
1 Call function one using object a aone 2 Call function one using b bo... View full answer
Get step-by-step solutions from verified subject matter experts
