What's wrong? for (int k =2, k<=12, k++) the increment should always be ++k B the commas should be semicolons the variable must always be the letter i when using a for loop there should be a semicolon at the end of the statement

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter14: Files And Streams
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Topic Video
Question
c++
In C++, which of the following objects need to be used in order to open a file for writing purpose?
iomanip
ofstream
iostream
ifstream
Transcribed Image Text:In C++, which of the following objects need to be used in order to open a file for writing purpose? iomanip ofstream iostream ifstream
What's wrong?
for (int k = 2, k<=12, k++)
A the increment should always be ++k
B) the commas should be semicolons
the variable must always be the letter i when using a for loop
D) there should be a semicolon at the end of the statement
Transcribed Image Text:What's wrong? for (int k = 2, k<=12, k++) A the increment should always be ++k B) the commas should be semicolons the variable must always be the letter i when using a for loop D) there should be a semicolon at the end of the statement
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L