1.

What is cascading of input/output operators? Give examples. 

Answer»
  • The multiple use of << or >>in a one statement is known of 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

Related InterviewSolutions