Question: 1- Given the expression: int n[3]; A variable of type int* n is allocated in memory in addition to n[0], n[1], and n[2]. 2- Given

1-

Given the expression:

int n[3];

A variable of type int* n is allocated in memory in addition to n[0], n[1], and n[2].

2-

Given the expression:

int n[3];

A variable of type int* n is allocated in memory in addition to n[0], n[1], and n[2].

a)

True

b)

False

c)

It is compiler specific.

3-

Given the following expression:

int array[3];

What is the datatype of the variable 'array'?

4-

void printValues (int* someValues); void main() { int myArray[3] = {1,2,3}; printValues(myArray); }

The function call of 'printValues' matches the function prototype?

a)

True

b)False

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!