Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is the output? #include <iostream> using namespace std; int main() { int t,c=0; while(cin>>t) c++; cout<<c<<endl; return 0; }

user-image
Question added by Mohammad Zia Khan , Staff Engineer , Nagarro Software Pvt Ltd
Date Posted: 2016/09/07
mohsin sharif
by mohsin sharif , iOS Developer , PMAS BIIT Arid Agriculture University

its depend on user inputs, it will display the numbers of time user gives the input when you terninate the while loop with / it will print how many time you gives the input

More Questions Like This