Question: Can someone answer these questions? 13. Write a single C++ statement defines an int array with the identifier iarray having 1000 elements, all of which
Can someone answer these questions?
13. Write a single C++ statement defines an int array with the identifier iarray having 1000 elements, all of which are initialized to the value 0; 14. Can a global variable have a storage class of automatic? 15. Write a sequence of statement that will create a class FinEx that includes the two private data members mem1 of type int, and mem2 of type float; a constructor that provides a default initial value of 0 to the two data members; and an initialization constructor that initializes mem1 to the value specified by the first parameter, and mem2 to the value specified by its second parameter; and a member function Display() that displays the value of a FinEx object in the form mem mem2. That is, the value of mem2 followed by the value of mem2 separated by the backslash. Your answer should include the definitions of the constructor and Display) functions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
