Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
using namespace std;
3.
int func (int a, int b)
4.
{
5.
cout
Options:
A .  2323
B .  232
C .  23
D .  compile time error
Answer: Option D

In this program, we can’t do the casting from char to int, So it is raising an error.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers