adplus-dvertising
frame-decoration

Question

The statement float values[]={3.14, -7.86, 36.96, 4.87};

a.

assigns 36.96 to values[2]

b.

assigns -7.86 to values[2]

c.

gives an error message

d.

assign 14 to values[2]

Answer: (a).assigns 36.96 to values[2]

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The statement float values[]={3.14, -7.86, 36.96, 4.87};

Similar Questions

Discover Related MCQs

Q. When the compiler places a copy of a small function's statements directly into a program, the function is said to be _____

Q. A group of related fields that contain all of the data about a specific person, place, or thing is called a

Q. To send output to a file, you need to include the _____ header file in your program

Q. A C++ _____ is a program that runs in a DOS window

Q. A 'C' function does not contain

Q. _____ variables remain in memory until the program ends

Q. Which of the following is false?

Q. _____ variables are declared outside of any statement block

Q. Variable names known only to the procedure in which they are declared are ________

Q. Which is true?

Q. The keyword used to define a structure is

Q. Which of the following tells C++ to display numbers with zero decimal places?

Q. Code that has already been tested is said to be _____

Q. The most efficient data type for a variable that the number 20000 is the _____ data type

Q. The number 5.5e3 is a _____ constant

Q. Simple routines that programmers use as place holders while a system is being tested are called _____

Q. The two operators && an || are

Q. The arguments that determine the state of the cout object are called _____

Q. Static variables are sometimes called

Q. The variables declared in a statement block or listed in a function header's parameterlist are considered _____ variables