Question: How many storage spaces the following statement allocates ? int number1[10], number2[30]; 300 none this statement do not allocates space c. 40 none of the

How many storage spaces the following statement allocates ? int number1[10], number2[30];

300

none this statement do not allocates space

c. 40

none of the above

5 points

QUESTION 14

What is the selection that best describes the following statement: int function( int, double [ ] );

This function returns an integer and has 2 integer inputs

This function returns an integer and accepts 1 integer input and 1 array of doubles

This function returns an array type double and 1 integer; and has 1 integer input

none of the above

5 points

QUESTION 15

What set of code correctly initializes all elements of the array ar to the value 0, given the declaration int ar[3];

ndx = 1; while (ndx < 3) { ar[ndx] = 0; ++ndx; }

ndx = 1; while (ndx

ndx = 0; while (ndx < 3) ar[0] = ndx; ndx++; }

ndx = 0; while (ndx < 3) { ar[ndx] = 0; ndx++; }

5 points

QUESTION 16

What is the selection that best describes the following statement: int function( int, double [ ] );

function definition

function prototype

function call

none of the above

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!