Q. What is the output of this program?

Code:
#include <iostream>
    #include <iomanip>
    using namespace std;
    void showDate(int mm, int dd, int yy)
    {
        cout << setfill('0');
        cout << setw(2) << mm << '/'
        << setw(2) << dd << '/'
        << setw(4) << yy << endl;
    }
    int main()
    {
        showDate(1, 1, 2019);
        return 0;
    }
  • (A) 01
  • (B) 02
  • (C) 2019
  • (D) 01/01/2019
πŸ’¬ Discuss
βœ… Correct Answer: (D) 01/01/2019

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
273
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Uday Singh
Publisher
πŸ“ˆ
94%
Success Rate