write():
This function helps us to display specific number of characters from a specified string.
Header file: iostream.h
Syntax:
cout.write(n,s);
n: string / character array/ variable
s: number of characters to display
n=”computer”
cout.write(n,2); co
cout.write(n,3); com