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

Discussion Board
wrong question

C does not have the concept of namespace.

William 09-26-2015 08:41 PM

c++

this is a very nice website.

ramu yadav 02-19-2015 11:38 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement