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

Discussion :: C++ - MCQs

  1. What is the output of this program?

    #include < iostream >

    using namespace std;

    int main ()

    {

    cout << "Value of __LINE__ : " << __LINE__ << endl;

    cout << "Value of __FILE__ : " << __FILE__ << endl;

    cout << "Value of __DATE__ : " << __DATE__ << endl;

    cout << "Value of __TIME__ : " << __TIME__ << endl;

    return 0;

    }


  2. A.
    5
    B.
    Details about your file
    C.
    compile time error
    D.
    none of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    In this program, we are using the macros to print the information about the file.


Be The First To Comment