다음 코드를 실행했을때 어떤 결과가 나오는가?
#include <iostream>
#define PI 3.14;
using namespace std;
int main()
{
int radius = 3;
float area = radius * radius * PI
string area_class = (area > 10) ? "less" : "greater";
cout << area_class << " than 10";
}
1) 컴파일 되지 않는다
2) "greater than 10"
3) "less than 10"
기말고사였나 중간고사였나 헛갈리는데.