English

What is the use of setw( ) format manipulator?

Advertisements

Question

What is the use of setw( ) format manipulator?

Short/Brief Note
Advertisements

Solution

setw manipulator sets the width of the field assigned for the output. The field width determines the minimum number of characters to be written in output.
Syntax:
setw(number of characters)

shaalaa.com
  Is there an error in this question or solution?
Chapter 9: Introduction to C++ - Data Types, Variables and Expressions - Evaluation - Section - B [Page 150]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 9 Introduction to C++
Data Types, Variables and Expressions - Evaluation - Section - B | Q 2. | Page 150
Advertisements
Share
Notifications



      Forgot password?
Use app×