What will be printed as a result of the execution of the following program:
#include <iostream>

#define CASE_PRINT(c) case c:	\
	std::cout<<#c<<std::endl;	\
	break

int main()
{
	const int birch=0;
	enum tree { oak, pine, fir };
	static tree a;
	switch ( a ) {
		CASE_PRINT(birch);
		CASE_PRINT(oak);
		CASE_PRINT(pine);
		CASE_PRINT(fir);
	}
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes