1.

Explain input and output cascading with an example each.

Answer»

The multiple use of << or >> in a one statement is known for cascading.

Cascading of output operator ( >>):

cout<<“ Hello “<<“ ISC

cout<< “Value of B=”<< b;

Cascading of input operator (>>):

int n1,n2,n3;

cin >> n1 >> n2 >> n3 ;

cin>>n1>>n2;



Discussion

No Comment Found