What is the output of following C++ program?
#include < iostream>
using namespace std;
int main()
{
typedef int num;
typedef char let;
let w = "steve";
num a = 10, b = 15;
num c = a + w;
cout << c;
return 0;
}
Options
- compile but not run
- compile time error
- 10steve
- none of these
CORRECT ANSWER : compile time error
Write your comments