CJCoding With Joseph
15free / daySign inCreate account
Back to Multiple Choice Quiz

Select topics to narrow your question pool, then enable Random to jump to a random question matching your filters.

Topics

setfill Output

C++ quiz · Question 65
mediumStreams

What is the output of the following code?

#include <iostream>
#include <iomanip>
using namespace std;
int main() {
    cout << setfill('*') << setw(6) << 42;
}