Sail E0 Webinar
Question

What is the output of this program?

#include < iostream >

using namespace std;

int main () 

int n; 

n = 43;

cout

Options:
A .  2c
B .  2b
C .  20
D .  50
Answer: Option B


In this program, We are printing the hexadecimal value of the given decimal number by using hex function.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers