What is the error in the following code?

for (int c = 0; c < 100; c++)
{
cout << “******” << endl;
}
cout << c << “ lines “;

c cannot be referenced outside the body of the for loop where it is defined.

Computer Science & Information Technology

You might also like to view...

To select all elements with the class value run, the _________ attribute selector must be used.?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Find the error(s) in the following code. This method should modify the Age field of strUserName.

 objUpdateAge[ "Age" ].Value = intAge;

 objUpdateAge.Parameters[ "Original_NAME" ].Value =
 strUserName;

 objUpdateAge.ExecuteNonQuery();

 objOleDbConnection.Close();
 objUpdateAge[ "Age" ].Value = intAge;

Computer Science & Information Technology