Question: Consider the following C + + code snippet:const long SIZE 1 0 const long THE ARRAY [ SIZE ] = { - 5 1 0

Consider the following C++ code snippet:const long SIZE10const long THE ARRAY[SIZE]={-510,6,100,-54,3,9,8,-4,0Without writing a full int main () function, write theC++ statements necessary to call the function definedabove.2. Consider the following C++ code snippet:struct Datelong yearlong month ;long day ;long query for long (string) ;a. Declare a variable of type Date named a_ date.b. Declare a pointer of type Date named ptr date.c. Using the prototyped function, assign a value to eachmember variable of a date.d. Using the prototyped function, assign a value to eachmember variable of tr date.Consider the following C++ code snippet:
}
{10,6,100,-54,3,9,8,-4,0
Without writing a full int main() function, write the C++ statements necessary to call the function defined above.
2. Consider the following C++ code snippet:
struct Date {
long year ;
long month ;
long day ;
} ;
long query_for_long(string) ;
a. Declare a variable of type Date named a_date.
b. veciare a pointer or type vace named ptr_date.
c. Using the prototyped function, assign a value to each member variable of a_date.
d. Using the prototyped tunction, assign a value to each member variable of ptr_date.
 Consider the following C++ code snippet:const long SIZE10const long THE ARRAY[SIZE]={-510,6,100,-54,3,9,8,-4,0Without

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!