Question: 1.) Given int foo [50]; .... what is an equivalent way to represent: & foo [0] a.) foo& b.) foo c.) foo [0] d.) None

1.) Given int foo [50]; .... what is an equivalent way to represent: & foo [0]

a.)

foo&

b.)

foo

c.)

foo [0]

d.)

None of the above

2.) Given an array defined as: int foo [5]; ... the following statement is never an issue: foo [5] = 12;

True

False

3.) Given the array: int foo [5] = {10,20,30,40, 50}; .... what would be printed from: printf ("%i", ++foo [3] );

a.)

30

b.)

31

c.)

40

d.)

41

4.) What is the array length (i.e., size) after this declaration: int foo [ ] = {10, 20, 40, 50, 60, 70};

a.)

4

b.)

5

c.)

6

d.)

7

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!