Tuesday, May 12, 2015

Output Statement (cout) in C++


cout (console output) –  It is used to print/display value of variable.
Syntax:-
cout << variable_name;
cout << “Any Message”;

Ex: -
cout << a;
cout << “Hello World”;

where << is known as insertion or put to operator.

  cout << “Any Message”
  cout << a
where a is variable and Any message is string



No comments:

Post a Comment