Question: 1) Consider the array declaration, int x[20];. There is no memory allocated for x[20]. 2) Given the two C++ array declarations: int a[10], b[10]; You
1) Consider the array declaration, int x[20];. There is no memory allocated for x[20].
2) Given the two C++ array declarations:
int a[10], b[10];
You can successfully compute one array, say a, then assign b to a:
a = b;
3) Give the syntax of an array declaration. Mention the base type and declared size.
4) The dot operator is used between an object and a data member or between a calling object and a call to a member function from the class of the object.
5) You can change the behavior of + for the int type using operator overloading
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
