-
What is the output of this program?
#include
using namespace std;
int main()
{
typedef int number;
typedef char name;
name n = "Interview Mania";
number P = 12, Q = 25;
number R = P + n;
cout << R;
return 0;
}
-
- Interview Mania12
- 25Interview Mania
- Compilation Error
- Garbage Value
- Runtime Error
Correct Option: C
Error: invalid conversion from ‘const char*’ to ‘let {aka char}’.
Compilation Error
In function 'int main()':
7:18: error: invalid conversion from 'const char*' to 'name {aka char}' [-fpermissive]
8:24: warning: unused variable 'Q' [-Wunused-variable]