Process File Data using C Pointers

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

Declare a C character pointer and initialize the array.

Create a function that takes a pointer and populates the array.

Modify the C program to read from a file and search for a string.

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

By the end of this project you will implement a program using C that uses pointers to access a csv file and searches the file for a character string. 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. These languages utilize pointers to access variables, so it is an important concept to grasp. 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 ArraysC Standard LibraryC PointersC File ProcessingC Programming

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 pointer to a character.

  2. Declare a C character pointer and initialize the array.

  3. Pass a C pointer to a function to populate the array.

  4. Create a function in C that takes a pointer and populates the array.

  5. Modify the C program to read from a file and search for a string.

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.