78.7k views
1 vote
Consider the following code. // Insertion Point 1 using namespace std; const float PI = 3.14; int main() { //Insertion Point 2 float r = 2.0; float area; area = PI * r * r; cout << "Area = " << area <

1 Answer

7 votes

This question is incomplete. The complete question is attached below:

Answer:

Insertion Point 1

Step-by-step explanation:

The include statement is used to import any kind of header file or a library.

All the structure of programming languages such as C++, header files and libraries are import at the top of file i.e. the Insertion Point 1.

Insertion Point 2 is the area where generally main logic of the program exits so can't use the include statement here.

Insertion Point 3 and anywhere in the program are syntactically wrong approach to use the include statement and will result in an error as the program will not compile.

Consider the following code. // Insertion Point 1 using namespace std; const float-example-1
User Stijn Janssen
by
9.0k points