Sail E0 Webinar
Question

What is the output of this program?

#include < iostream >

using namespace std;

int main () 

{

char str[] = "Steve jobs";

int val = 65;

char ch = 'A';

cout.width (5);

cout

Options:
A .  Steve jobs
B .  A
C .  5
D .  65
Answer: Option D


In this program, We are printing the five spaces and then we are printing the value of 65.



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers