Javatpoint Logo
Javatpoint Logo

C++ Manipulator nouppercase

C++ manipulator nouppercase function is used to clear the uppercase format flag for the str stream.

When we set nouppercase format flag, then it disables capital (uppercase) letters to use instead of lowercase for representations on output operations involving stream generated letters, like floating point, hexadecimal integer output and numerical base prefixes.

Syntax

Parameter

str: stream object whose format flag is affected.

Return value

It returns argument str.

Data Races

Data races may cause when modifies str concurrent access to the same stream object.

Exceptions

str is in a valid state, if an exception is thrown.

Example 1

Let's see the simple example to demonstrate the use of uppercase:

Output:

0X4D
0x4d

Example 2

Let's see another simple example:

Output:

0x2a with uppercase: 0X2A
0x2a with nouppercase: 0x2a
1e-10 with uppercase: 1E-10
1e-10 with nouppercase: 1e-10
Next TopicC++ Manipulator





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA