Which of the following are restrictions on use of a stream variable (either ifstream or ofstream)

a) To use a stream variable as a function parameter you can use call-by-value or call-by-value.
b) To use a stream variable as a function parameter you can only use call-by-value.
c) To use a stream variable as a function parameter you can only use call-by-reference.
d) You cannot assign a stream variable.
e) A file variable can be used in any way any other variable can be use.

c) To use a stream variable as a function parameter you can only use call-by-reference. , and d) You cannot assign a stream variable.

a) and b) allow or require call-by-value. These are explictly prohibited. Part e) is just wrong.

Computer Science & Information Technology

You might also like to view...

An example of a(n) ________ URL is: /images/recipes/monkeybread.jpg

A) inactive B) relative C) absolute D) secure

Computer Science & Information Technology

A style that includes formatting for an entire table and specific table elements, such as rows and columns

a. Formatting style b. Table style c. AutoFit style

Computer Science & Information Technology