answersLogoWhite

0

What does cout stand for in c?

Updated: 8/11/2023
User Avatar

Wiki User

15y ago

Best Answer

It serves to send usually text-based information on the monitor (in currently running application, window), for instance:

...

int myVariable;

cout >> "Please enter a number: ";

cin >> myVarible;

//You entered number 5

cout << "You entered the number: " << myVariable;

...

In the application window you will see:

Please enter a number:

5

You entered the number: 5

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

An object of type iostream, represents the standard output of the program.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does cout stand for in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Two numbers are input through the keyboard into two locations C and D write a program in c to interchange the contents of C and D?

#include&lt;iostream.h&gt; main() { int C,D,E; cout&lt;&lt;"Number at location C="; cin&gt;&gt;C; cout&lt;&lt;"Number at location D="; cin&gt;&gt;D; E=C; C=D; D=E; cout&lt;&lt;"New Number At Location C="&lt;&lt;C&lt;&lt;endl; cout&lt;&lt;"New Number At Location D="&lt;&lt;D&lt;&lt;endl; }


How do you write a c plus plus program to print aaaa aaab aabb abbb bbbb?

#include&lt;iostream&gt; #include&lt;string&gt; #include&lt;algorithm&gt; bool compare_no_case (const char a, const char b) { return tolower(a) &lt; towlower (b); } int main() { std::string s {"This is the string to be sorted!"}; std::cout &lt;&lt; "Unsorted:\t"" &lt;&lt; s &lt;&lt; ""\n"; std::sort (s.begin(), s.end(), compare_no_case); std::cout &lt;&lt; "Sorted\t:"" &lt;&lt; s &lt;&lt; ""\n"; }


C program for optimal merge pattern?

#include&lt;iostream.h&gt; #include&lt;conio.h&gt; void main() { clrscr(); int i,k,a[10],c[10],n,l; cout&lt;&lt;"Enter the no. of elements\t"; cin&gt;&gt;n; cout&lt;&lt;"\nEnter the sorted elments for optimal merge pattern"; for(i=0;i&lt;n;i++) { cout&lt;&lt;"\t"; cin&gt;&gt;a[i]; } i=0;k=0; c[k]=a[i]+a[i+1]; i=2; while(i&lt;n) { k++; if((c[k-1]+a[i])&lt;=(a[i]+a[i+1])) { c[k]=c[k-1]+a[i]; } else { c[k]=a[i]+a[i+1]; i=i+2; while(i&lt;n) { k++; if((c[k-1]+a[i])&lt;=(c[k-2]+a[i])) { c[k]=c[k-1]+a[i]; } else { c[k]=c[k-2]+a[i]; }i++; } }i++; } k++; c[k]=c[k-1]+c[k-2]; cout&lt;&lt;"\n\nThe optimal sum are as follows......\n\n"; for(k=0;k&lt;n-1;k++) { cout&lt;&lt;c[k]&lt;&lt;"\t"; } l=0; for(k=0;k&lt;n-1;k++) { l=l+c[k]; } cout&lt;&lt;"\n\n The external path length is ......"&lt;&lt;l; getch(); }


C plus plus code that determine prime number?

#include &lt;iostream.h&gt; main() { int a; cout&lt;&lt;"enter a number : "; cin&gt;&gt;a; cout&lt;&lt;endl; if (a%2-1) cout&lt;&lt;"it is a prime number"; else cout&lt;&lt;"it is not a prime number" return 0; } ------------------------------------------ output: enter a number : 30 it is a not a prime number


C program to check whether a given matrix is orthogonal or not?

#include&lt;iostream&gt; #include&lt;stdio.h&gt; #include&lt;conio.h&gt; using namespace std; int main() { int a[20][20],b[20][20],c[20][20],i,j,k,m,n,f; cout &lt;&lt; "Input row and column of A matrix \n\n"; cin &gt;&gt; n &gt;&gt; m; cout &lt;&lt; "\n\nInput A - matrix \n\n"; for(i=0;i&lt;n;++i) for(j=0;j&lt;m;++j) cin &gt;&gt; a[i][j]; cout &lt;&lt; "\n\nMatrix A : \n\n"; for(i=0;i&lt;n;++i) { for(j=0;j&lt;m;++j) cout &lt;&lt; a[i][j] &lt;&lt; " "; cout &lt;&lt; "\n\n"; } for(i=0;i&lt;m;++i) for(j=0;j&lt;n;++j) b[i][j]=a[j][i]; cout &lt;&lt; "\n\nTranspose of matrix A is : \n\n"; for(i=0;i&lt;m;++i) { for(j=0;j&lt;n;++j) cout &lt;&lt; b[i][j] &lt;&lt; " "; cout &lt;&lt; "\n\n"; } for(i=0;i&lt;m;i++) { for(j=0;j&lt;m;j++){ c[i][j]=0; for(k=0;k&lt;=m;k++) c[i][j]+=a[i][k]*b[k][j]; } } for(i=0;i&lt;m;i++) { for(j=0;j&lt;m;j++) { if((int)c[i][i]==1&amp;&amp;(int)c[i][j]==0) f=1; } } cout&lt;&lt;"\n\n Matrix A * transpose of A \n\n"; for(i=0;i&lt;m;i++) { for(j=0;j&lt;m;j++) cout &lt;&lt; c[i][j]; cout &lt;&lt; "\n\n"; } if(f==1) cout &lt;&lt; "\n\nMatrix A is Orthogonal !!!"; else cout &lt;&lt; "\n\nMatrix A is NOT Orthogonal !!!"; getch(); return 0; } -ALOK

Related questions

Write algorithm to find middle number in three numbers?

#include&lt;iostream.h&gt; #include&lt;conio.h&gt; void main() { int a,b,c; cout&lt;&lt;"enter the value of a"&lt;&lt;endl; cin&gt;&gt;a; cout&lt;&lt;"enter the value of b"&lt;&lt;endl; cin&gt;&gt;b; cout&lt;&lt;"enter the value of c"&lt;&lt;endl; cin&gt;&gt;c; if(a&gt;b) { if(b&gt;c) { cout&lt;&lt;"the middle number is b:"&lt;&lt;endl; } else { if(a&gt;c) { cout&lt;&lt;"the middle is c:"&lt;&lt;endl; } else { cout&lt;&lt;"the middle number is b:"&lt;&lt;endl; } } if(a&lt;b) { if(b&lt;c) { cout&lt;&lt;"the middle number is b:"&lt;&lt;endl; } else { if(a&lt;c) { cout&lt;&lt;"the middle number is c:"&lt;&lt;endl; } else { cout&lt;&lt;"the middle number is a:"&lt;&lt;endl; } } }


What is the definition of cout?

COUT is an inbuilt function in c++ language. Cout is used to print something on to the standard output.


What does code is case-sensitive mean when it is all numerical?

It means that you are writing code computer generates different names for x and X, also it will understand commands or will not under stand it at all (c++: cout and Cout are different).


Two numbers are input through the keyboard into two locations C and D write a program in c to interchange the contents of C and D?

#include&lt;iostream.h&gt; main() { int C,D,E; cout&lt;&lt;"Number at location C="; cin&gt;&gt;C; cout&lt;&lt;"Number at location D="; cin&gt;&gt;D; E=C; C=D; D=E; cout&lt;&lt;"New Number At Location C="&lt;&lt;C&lt;&lt;endl; cout&lt;&lt;"New Number At Location D="&lt;&lt;D&lt;&lt;endl; }


Write a program to print grade of a student in C?

#include&lt;iostream.h&gt; #include&lt;conio.h&gt; void main() { clrscr(); int marks; cout&lt;&lt;"Enter Marks of Student="; cin&gt;&gt;marks; cout&lt;&lt;"Grade\n"; if(marks&gt;0 &amp;&amp; marks&lt;50) cout&lt;&lt;"F"; else if(marks&gt;=50 &amp;&amp; marks&lt;55) cout&lt;&lt;"C-"; else if(marks&gt;=55 &amp;&amp; marks&lt;60) cout&lt;&lt;"C"; else if(marks&gt;=60 &amp;&amp; marks&lt;65) cout&lt;&lt;"c+"; else of(marks&gt;=65 &amp;&amp; marks&lt;69) cout&lt;&lt;"B-"; else if(marks&gt;=69 &amp;&amp; marks&lt;71) cout&lt;&lt;"B"; else if(marks&gt;=71 &amp;&amp; marks&lt;75) cout&lt;&lt;"B+"; else if(marks&gt;=75 &amp;&amp; marks&lt;79) cout&lt;&lt;"B"; else if(marks&gt;=79 &amp;&amp; marks&lt;84) cout&lt;&lt;"A"; else cout&lt;&lt;"A"; getch(); }


Program to generate a pattern a aba abcba?

#include&lt;iostream.h&gt; void main() { cout&lt;&lt;' '&lt;&lt;' '&lt;&lt;"a"&lt;&lt;'\n'; cout&lt;&lt;' '&lt;&lt;"a"&lt;&lt;"b"&lt;&lt;"a"&lt;&lt;'\n'; cout&lt;&lt;'a'&lt;&lt;'b'&lt;&lt;'c'&lt;&lt;'b'&lt;&lt;'a'&lt;&lt;"\n"; }


C program to find maximum of three nos without using loops?

I am a student of class 10. I doesn't know C Language but I can tell such a program in C++ Language.... //------------------------------------ #include &lt;iostream.h&gt; #include &lt;conio.h&gt; void main() { int a,b,c,m; clrscr(); cout&lt;&lt;"Enter First Number: "; cin&gt;&gt;a; cout&lt;&lt;"Enter Second Number: "; cin&gt;&gt;b; if (a&lt;b) m=a; if (a&gt;b) m=b; cout&lt;&lt;"Enter Third Number: "; cin&gt;&gt;c; if (c&lt;m) cout&lt;&lt;"The Largest Number is "&lt;&lt;m; else cout&lt;&lt;"The Largest Number is "&lt;&lt;c; getch(); }


What is c out?

most basicaly if I tell, cout is the printing statement in c++. cout&lt;&lt;"Hello world"; The above statement will print the sentence "hello wold". with the expression cout &lt;&lt;variable, the contents of variable is printed to the standard output. int variable=10; cout&lt;&lt;variable; The o/p will be 10..... Hope this will help u.... :)


How do you make a C plus plus program that arrange the the numbers in ascending order?

Heres something i whipped up in a hurry... This uses the Bubble Sort method found (related links) #include &lt;iostream&gt; using namespace std; int main(int argc, const char* argv) { int arraysize = 5; //Unsorted array size int array [] = { 5, 3, 4, 2, 1 }; //The array of numbers itself //Display the unsorted array cout &lt;&lt; "Before: {"; for (int c=0; c &lt;= arraysize; c++) { cout &lt;&lt; array[c]; if (c != arraysize) { cout &lt;&lt; ","; } } cout &lt;&lt; "}" &lt;&lt; endl; //Acctually sort the array int tmp=0; //Used for swaping values for (int loop=0; loop &lt;= (arraysize - 1); loop++) { for (int c=0; c &lt;= (arraysize - 1); c++) //The sort loop { if (array[c] &gt; array[c + 1]) { //Swaps the two values in the array tmp = array[c]; array[c] = array[c + 1]; array[c + 1] = tmp; //Cleanup tmp = 0; } } } //Display the sorted array cout &lt;&lt; "After: {"; for (int c=0; c &lt;= arraysize; c++) { cout &lt;&lt; array[c]; if (c != arraysize) { cout &lt;&lt; ","; } } cout &lt;&lt; "}" &lt;&lt; endl; return 0; }


What is the Logic to print the letters from A to Z without using printf in Turbo C plus plus?

#include&lt;iostream&gt; int main() { using namespace std; char c='A'; do { cout&lt;&lt;c; }while(c++&lt;'Z'); cout&lt;&lt;endl; }


How you can use two input in a single statement in c plus plus?

cout&lt;&lt;"______": cin &gt;&gt;__&gt;&gt;__; [example cout&lt;&lt;"enter no."; cin&gt;&gt;a&gt;&gt;b; ]


What statement is used to display the output in C?

cout &lt;&lt; "sup" &lt;&lt; endl; Well, it's not C