ExamVeda
Login
Home
Variables and Data Types in C plus plus
?

What will be the output of the following C++ code?
#include <iostream>
using namespace std;
enum  cat 
{
    temp = 7
};
int main()
{
    int age = 14;
    age /= temp;
    cout << "If you were cat, you would be " << age << endl;
    return 0;
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.