Question
1.
#include
2.
using namespace std;
3.
int main ()
4.
{
5.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main ()
4.
{
5.
cout
Answer: Option B
Was this answer helpful ?
In this program, we are using the macros to print the information about the file.
Output:
$ g++ mac2.cpp
$ a.out
Value of __LINE__ : 5
Value of __FILE__ : mac1.cpp
Value of __DATE__ : Oct 10 2012
Value of __TIME__ : 22:24:37
Was this answer helpful ?
Submit Solution