What is wrong with the following for loop?

for(int i=0;i<10;i--)
{
cout << "Hello\n";
}
a. can not use a for-loop for this
b. i is not initialized
c. infinite loop
d. off-by-one error


c. infinite loop

Computer Science & Information Technology

You might also like to view...

When enforcing referential integrity on fields with multiple values, you need to ensure that ________

A) the primary key and foreign key fields have not had any data entered into them B) the foreign key field has not had any data entered into it C) the primary key field has not had any data entered into it D) Referential integrity cannot be enforced on fields with multiple values

Computer Science & Information Technology

If you use the _________ expression as the default value in a Date/Time data type, the current date and time will be inserted in each record when it is created

A) CURRENT() B) DATE() C) TODAY() D) NOW()

Computer Science & Information Technology

What is the benefit of saving a report as another type of file?

What will be an ideal response?

Computer Science & Information Technology

The source data for a PivotTable can come from any external source in any format

Indicate whether the statement is true or false

Computer Science & Information Technology