Question: C++ Visual studios How many times does # print? for(int i = 0; i < 4; ++i) { if(i == 2) { continue; } cout
C++ Visual studios
How many times does "#" print?
for(int i = 0; i < 4; ++i) { if(i == 2) { continue; } cout << "#"; }
Fill in the following code to crash the program if the file fails to open
#include
using namespace std;
int main() { ifstream inf("input.txt");
if(!inf) {
cout << "Failed to open file" << endl; ( ) // type either true of false in the parenthesis which ever one would make the program crash }
return 0;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
