Discussion :: C++ - MCQs
-
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;
}
Answer : Option B
Explanation :
In this program, we are using the macros to print the information about the file.
Be The First To Comment