Create C Control Constructs using DevC++

Offered By
Coursera Project Network
In this Guided Project, you will:

Create a C program that checks the command line arguments.

Create a do-while loop in a C program to read characters from a file.

Use compound conditions in a C program to count lines and words in a file.

Clock2 hours
IntermediateIntermediate
CloudNo download needed
VideoSplit-screen video
Comment DotsEnglish
LaptopDesktop only

By the end of this project you will implement a C program that determines how many words, characters, and lines are in a file using C control constructs. The C programming language is the basis for many other programming languages. Its syntax has been used in languages such as C++, Java, and C# to name a few. All these languages utilize control constructs such as the decision constructs and loop constructs. C is still the language of choice for writing Operating systems, games, and many other applications where performance is critical. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

Skills you will develop

C switch constructsC ProgrammingC command lineC Loop constructsC if statemements

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

  1. Create a C program that checks the command line arguments.

  2. Use an if-else construct in C to execute code when conditions are favorable.

  3. Use a switch construct in C to analyze the command line arguments.

  4. Create a do-while loop in a C program to read characters from a file.

  5. Use a compound condition in a C program to count lines and words in a file.

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently asked questions

Frequently Asked Questions

More questions? Visit the Learner Help Center.