Vidyalelo
C++ Programming · Q587

C++ miscellaneous

Programming · C++ Programming · question 587

Q587

What will be the output of the following C++ code? #include using namespace std; int main () char str[] = "Steve jobs"; int val = 65; char ch = 'A'; cout.width (5); cout << right; cout << val << endl; return 0;

A.
Steve jobs
B.
A
C.
65
D.
     65
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board