Computer Science, asked by sasmitanayak1991b, 4 months ago

What is the output of the program?
#include <iostream>
using namespace std;
int main()
{
enum days
{
mon, tues, wed, thurs, fri,sat, sun
for (int num = mon; num <= sun; num++)
cout << num++ + (days (num));
return 0;
}​

Answers

Answered by bittu82397
0

Answer:

15913

Explanation:

Error in your code - correct code is

#include <iostream>

using namespace std;

int main()

{

enum days

{

mon, tues, wed, thurs, fri,sat, sun};

for (int num = mon; num <= sun; num++)

cout << num++ + (days (num));

return 0;

}

Similar questions