- #1
ineedhelpnow
- 651
- 0
I came across this question while studying for a C++ exam. What is the screen output of the code?
What will this code display on the screen once compiled and executed?
Code:
#include <stdio.h>
int main(){
int i, counter=0;
for(i=0;i<100;counter++){
i++;
++counter;
}
cout<<i<<' '<<counter<<'\n';
return 0;
}
What will this code display on the screen once compiled and executed?