Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous

What will be the output of the following C++ code? #include <iostream> #include <iomanip> using namespace std; void showDate(int m, int d, int y) { cout << setfill('0'); cout << setw(2) << m << '/' << setw(2) << d << '/' << setw(4) << y << endl; } int main() { showDate(1, 1, 2013); return 0; }

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • 01/01/2013

Related Computer Questions

In Java, which collection class implements the Deque interface? Which of the following occurs when one transaction reads a changed record that has not been committed to the database? The SQL mode to check for divide by zero error is ______ Which for loop has range of similar indexes of 'i' used in for (i = 0;i < n; i++)? What is the output of the following code snippet: for i in range(2, 6): print(i)