Q. Predict the output:

Code:
int x = 786;
cout << setfill(‘*’) << setw(6) << x;
  • (A) 786***
  • (B) **786
  • (C) ***786
  • (D) ******
πŸ’¬ Discuss
βœ… Correct Answer: (C) ***786

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
380
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate