Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. int boot [10]; 2. int x; 3. y = foo(x); 4. y = foo(boot[5]); 5. y = foo(&x);

ID: 3652826 • Letter: 1

Question

1. int boot [10]; 2. int x;

3. y = foo(x);

4. y = foo(boot[5]);

5. y = foo(&x);

6. y = foo(boot);

7. y= foo(boot,10);

Illustration5: Function calls

----------------------------------------

38. Illustration 5: Which line calls a function with the name

of an array?

A. 6

B. 2

C. 4

D. 3

39. Illustration 5: Which line calls a function with a pointer

to an array?

A. 6

B. 2

C. 4

D. 5

40. Illustration 5: Which line calls a function with dimension

property of an array passed as an integer?

A. 7

B. 6

C. 4

D. 1

41. Illustration 5: Which line calls a function with a copy of

an array element?

A. 1

B. 3

C. 4

D. 6

42. Illustration 5: Which line calls a function with the

address of an integer?

A. 5

B. 6

C. 3

D. 7

43. Illustration 5: Which line calls a function with the copy

of an integer value?

A. 2

B. 6

C. 4

D. 3

44. String is a data type in C?

A. true

B. false

C. only as class

D. instances

45. Strings are letters placed in character arrays ending with

a null character

A. integers

B. classes

C. false

D. true

Explanation / Answer

please rate - thanks

1. int boot [10];

2. int x;

3. y = foo(x);                   call foo with value in x

4. y = foo(boot[5]);          call foo wih value in 6th element of boot

5. y = foo(&x);               call foo with address of x

6. y = foo(boot);            call foo with address of boot

7. y= foo(boot,10);         call foo with address of boot, and value 10

Illustration5: Function calls

----------------------------------------

38. Illustration 5: Which line calls a function with the name

of an array?

A. 6

B. 2

C. 4

D. 3

39. Illustration 5: Which line calls a function with a pointer

to an array?

A. 6

B. 2

C. 4

D. 5

40. Illustration 5: Which line calls a function with dimension

property of an array passed as an integer?

A. 7

B. 6

C. 4

D. 1

41. Illustration 5: Which line calls a function with a copy of

an array element?

A. 1

B. 3

C. 4

D. 6

42. Illustration 5: Which line calls a function with the

address of an integer?

A. 5

B. 6

C. 3

D. 7

43. Illustration 5: Which line calls a function with the copy

of an integer value?

A. 2

B. 6

C. 4

D. 3

44. String is a data type in C?

A. true

B. false

C. only as class

D. instances

45. Strings are letters placed in character arrays ending with

a null character

A. integers

B. classes

C. false

D. true