Home / CSE MCQs / C++ - MCQs :: Discussion

Discussion :: C++ - MCQs

  1. What is the output of this program?

    #include < iostream >

    using namespace std;

    #define PI 3.14159

    int main ()

    {

    float r = 2;

    float circle;

    circle = 2 * PI * r;

    cout << circle;

    return 0;

    }


  2. A.
    12.566
    B.
    13.566
    C.
    10
    D.
    compile time error

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    In this program, we are finding the area of the circle by using concern formula.


Be The First To Comment