If a struct type variable is to be passed to a function and its value should not be changed by the function, it is best to pass it as which type of parameter?

a) value
b) reference
c) const reference
d) const value


c) const reference

Computer Science & Information Technology

You might also like to view...

Whenever you look up a class in the Java API, the top-left corner of that class's page traces that class's superclasses all the way back to ____.

A. Object B. Class C. System D. Runnable

Computer Science & Information Technology

What is the difference between an algorithm with a higher complexity and an algorithm with lower complexity?

a. It is less efficient b. It is more efficient c. It is harder to implement d. It is easier to implement

Computer Science & Information Technology

Which of the following is NOT true about the Windows 8.1 Update?

A) Windows 8.1 Update has completely changed the interface so it no longer resembles Windows 8. B) Microsoft Windows 8.1 Update is the latest version of the Windows operating system. C) Windows 8.1 Update supports gesture recognition. D) Windows 8.1 Update uses a GUI as its interface.

Computer Science & Information Technology

Define near field communication (NFC) and explain how it is used for NFC-enabled credit cards and other devices that would otherwise need batteries.

What will be an ideal response?

Computer Science & Information Technology