Home » C++ Programming » Preprocessor » Question
  1. What is the output of this program?
    #include 
    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;
    }
    1. Details about current file
    2. Compilation Error
    3. Runtime Error
    4. Garbage value
    5. None of these
Correct Option: A

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



Your comments will be displayed only after manual approval.