Consider the following declarations of a function that receives an array of integers and finds the element with the maximum value:(i) findMax(int *vals, int numEls)(ii) findMax(int vals[], int numEls)The address in vals may be modified ____.

A. only if the function is declared as in (i)
B. only if the function is declared as in (ii)
C. if either (i) or (ii) is used
D. in neither case because an array variable cannot be modified (it is a pointer constant)


Answer: C

Computer Science & Information Technology

You might also like to view...

The shortcut for formatting a hanging indent is ____.

A. CTRL + H B. CTRL + T C. CTRL + ENTER D. CTRL + ALT + ENTER

Computer Science & Information Technology

____ has a standard method for creating Web page layouts.

A. HTML B. Windows C. CSS D. none of the above

Computer Science & Information Technology

Match each term to its definition

I.

A. begins a numbered list II.
B. identifies a definition for a term in list III.
    C. begins a glossary type list IV.
      D. begins a list that is bulleted V.
      E. identifies an element in a definition list

Computer Science & Information Technology

Which Cisco IOS command is used to configure EIGRP for IPv6 unequal load balancing?

A) load-balance unequal B) variance multiplier C) eigrp variance multiplier D) eigrp load-balance unequal

Computer Science & Information Technology