+1 vote
by kratos

What will be the output of the following program?

include <iostream.h>

include<stdio.h>

int main()

{

system("cls");

char string [ ] ="Pointers and Strings";

cout<<*(&string[2]<<'\n";

cout.write(string+5,15).put('\n');

cout.write(string,20).put('\n');

cout<<*(string+3)<<"\n";

return 0;

}

1 Answer

+2 votes
by kratos
 
Best answer

Output:

i

ers and Strings

Pointers and Strings

n

...