In the push function of the array implementation of the stack, recall that the element to push is passed into the function as a parameter. It is not passed by const reference because:
A. arrays are typically used for small elements, and this would prevent us from passing literal values, like push( 0 )
B. the element is expected to change within the push function
C. we don’t want changes in the element to be reflected back to the calling function
D. there is no danger of getting a runtime error in this situation
A
You might also like to view...
Which of the following is a document template?
a. Two documents linked together b. Read only sample documents c. A completed document d. A pre-designed document
Which Cisco IOS command would configure an extended IP ACL statement that permits all TFTP traffic from the 192.168.1.0/26 network to the 10.2.3.192/27 network?
A) access-list 101 permit udp 192.168.1.0 0.0.0.63 10.2.3.192 0.0.0.31 eq 69 B) access-list 101 permit tcp 192.168.1.0 0.0.0.63 10.2.3.192 0.0.0.31 eq tftp C) access-list 101 permit udp 10.2.3.192 0.0.0.31 192.168.1.0 0.0.0.63 eq 69 D) access-list 101 permit udp 192.168.1.0 0.0.0.63 eq tftp 10.2.3.192 0.0.0.31