Math, asked by muhammadrashid54227, 6 months ago

how many variables can be used in one cout object ?

Answers

Answered by UsmanSant
0

There is no upper limit for "cout" objects.

  • "ostream" class contains the "cout" object.
  • When the "iostream" header file gets declared, the "ostream" class gets automatically defined.
  • Standard output devices like monitors can print any output using cout object in c++.
  • Insertion operator (<<) is needed to insert any value in the "cout" object, which will get displayed on the screen eventually.
  • The lower number of variables that can be used in a "cout" object is usually one.
  • There is no upper limit to push any variable within a "cout" object

#SPJ3

Answered by shownmintu
0

How many variables can be used in one cout object ?

Answer - There is no upper limit for "cout" objects.

EXPLANATION -

  • "ostream" class contains the "cout" object.
  • ​Insertion operator (<<) is needed to insert any value in the "cout"      object, which will get displayed on the screen eventually.
  • The lower number of variables that can be used in a "cout" object is usually one.
  • The cout object in C++ is an object of class ostream . It is associated with the standard C output stream stdout .
  • cout is an object of the output stream that is used to show output. Basically, cin is an input statement while cout is an output statement. They also use different operators.
  • cin uses the insertion operator( >> ) at the same time as cout makes use of the extraction operator( << ).

#SPJ2

Similar questions