Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
typedef int num;
6.
typedef char let;
7.
let w = "steve";
8.
num a = 10, b = 15;
9.
num c = a + w;
10.
cout
Options:
A .  10steve
B .  steve10
C .  compile time error
D .  compile but not run
Answer: Option C

error: invalid conversion from 'const char*' to 'let {aka char}'




Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers