MCQs > IT & Programming > Programming With C > What would be printed on the standard output as a result of the following code snippet? main() { enum {red, green, blue = 0, white}; printf('%d %d %d %d', red, green, blue, white); return 0; }

Programming With C MCQs

What would be printed on the standard output as a result of the following  code snippet?
main()
{
        enum {red, green, blue = 0, white};
        printf("%d %d %d %d", red, green, blue, white);
        return 0;
}

Answer

Correct Answer: 0 1 0 1

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Programming With C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Programming With C Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it