232k views
4 votes
Statement Valid? float f[] = {2.3, 4.5, 5.6};

User Arcologies
by
8.5k points

1 Answer

4 votes

Answer:

Yes, the statement is valid.

Step-by-step explanation:

It declares an array of floating-point numbers named f and initializes it with three floating-point values: 2.3, 4.5, and 5.6. This is a valid C or C++ statement for creating and initializing an array of type float.

User Todd Chaffee
by
8.0k points

No related questions found