About this Course
4.6
46 ratings
9 reviews
Specialization
100% online

100% online

Start instantly and learn at your own schedule.
Flexible deadlines

Flexible deadlines

Reset deadlines in accordance to your schedule.
Beginner Level

Beginner Level

Hours to complete

Approx. 17 hours to complete

Suggested: 4 weeks of study, 6–8 hours/week...
Available languages

English

Subtitles: English
Specialization
100% online

100% online

Start instantly and learn at your own schedule.
Flexible deadlines

Flexible deadlines

Reset deadlines in accordance to your schedule.
Beginner Level

Beginner Level

Hours to complete

Approx. 17 hours to complete

Suggested: 4 weeks of study, 6–8 hours/week...
Available languages

English

Subtitles: English

Syllabus - What you will learn from this course

Week
1
Hours to complete
3 hours to complete

Pointers

Pointers are one of the most important and powerful aspects of the C language. Pointers are critical to understanding arrays, which let you manipulate sequences of data. They also give a programmer control and flexibility when programming, enabling solutions that are clean and efficient. Some other languages use pointers implicitly—or pointer-like constructs—so understanding their use will make you a better programmer in any language....
Reading
5 videos (Total 16 min), 15 readings, 3 quizzes
Video5 videos
Naive Swap2m
Pointers2m
Corrected Swap2m
Swap with Hardware6m
Reading15 readings
Pointer Basics10m
Pictures10m
Swap Revisited10m
The Practice Programming Environment10m
Assignment 11_read_ptr110m
Pointers under the Hood10m
A Program's View of Memory10m
NULL10m
Pointers to Structs10m
Pointers to Pointers10m
const10m
Aliasing10m
Pointer Arithmetic10m
Use Memory Checker Tools10m
Assignment 12_read_ptr210m
Quiz3 practice exercises
Pointers Conceptually6m
Pointers in Hardware6m
Pointers to Sophisticated Types6m
Week
2
Hours to complete
2 hours to complete

Arrays

Arrays are sequences of memory of the same type that are guaranteed to be one after another. This is an incredibly useful data format, enabling you to store many things together under one variable name. In this module, you will learn how to use arrays to solve more complex problems and lay the groundwork for more complex data types....
Reading
5 videos (Total 18 min), 9 readings, 1 quiz
Video5 videos
Array Access with Pointer Indexing1m
Index of Largest Element6m
Closest Point Step-Through3m
Dangling Pointers3m
Reading9 readings
Cryptography Motivation10m
Array Declaration and Initialization10m
Accessing an Array10m
Passing Arrays as Parameters10m
Writing Code with Arrays10m
Assignment 13_read_arr110m
Dangling Pointers10m
Array Size10m
Assignments 14_array_max, 15_tests_subseq, 16_subseq10m
Quiz1 practice exercise
Array Basics6m
Week
3
Hours to complete
4 hours to complete

Uses of Pointers

Now that you have mastered the basics of pointers and arrays, it is time to see some important uses of them. In this module, you will learn about how to manipulate strings and multi-dimensional arrays. You will also learn about function pointers, which allow you to pass "which function to call" as the parameter of another function....
Reading
4 videos (Total 22 min), 18 readings, 2 quizzes
Video4 videos
Copy a String4m
Incompatible Representations5m
Buffer Overflow4m
Reading18 readings
String Literals10m
Mutable Strings10m
String Equality10m
String Copying10m
Converting Strings to ints10m
Standard Library Functions10m
Assignments 17_read_arr2 and 18_reverse_str10m
Introduction10m
Declaration10m
Indexing10m
Initializing10m
Array of Pointers10m
Incompatibility10m
Array of Strings10m
Assignments 19_bits_arr and 20_rot_matrix10m
Function Pointer Basics10m
Sorting Functions10m
Format String Attacks10m
Quiz2 practice exercises
Function Pointers6m
Security Hazards6m
Week
4
Hours to complete
2 hours to complete

Recursion

By now you are familiar with iteration, in which repetition is expressed in terms of loops. Another programming technique to accomplish similar ideas is "recursion" in which a more complex instance of a problem is expressed in terms of solutions to simpler instances of the problem. In this module, you will learn how to read and write recursive code, giving you another powerful option for how to approach programming problems. ...
Reading
8 videos (Total 29 min), 10 readings, 1 quiz
Video8 videos
Writing Factorial Recursively6m
Translating Recursive Factorial to Code1m
Writing Fibonacci Recursively6m
Translate Recursive Fibonacci to Code4m
Duplication of Computation in Fibonacci1m
Execution of the Tail Recursive Implementation of Factorial4m
Execution of Mutually Recursive isOdd and isEven1m
Reading10 readings
Introduction to Recursion2m
Reading Recursive Code10m
Principles of Writing Recursive Code10m
Is Recursion Slow?10m
Assignment 21_read_rec110m
Tail Recursion10m
Equivalence of Tail Recursion and Iteration10m
Mutual Recursion10m
Assignments 22_tests_power and 23_power_rec10m
(Optional) Recursion Theory10m
Quiz1 practice exercise
Reading Recursion6m
4.6
9 ReviewsChevron Right

Top Reviews

By DHAug 13th 2018

End of course project was challenging and fun. Lots of opportunity to learn how to debug memory issues with valgrind.

Instructors

Avatar

Andrew D. Hilton

Associate Professor of the Practice
Electrical and Computer Engineering
Avatar

Anne Bracy

Senior Lecturer
Computer Science, Cornell University
Avatar

Genevieve M. Lipp

Adjunct Professor
Electrical and Computer Engineering/Mechanical Engineering

About Duke University

Duke University has about 13,000 undergraduate and graduate students and a world-class faculty helping to expand the frontiers of knowledge. The university has a strong commitment to applying knowledge in service to society, both near its North Carolina campus and around the world....

About the Introduction to Programming in C Specialization

This specialization develops strong programming fundamentals for learners who want to solve complex problems by writing computer programs. Through four courses, you will learn to develop algorithms in a systematic way and read and write the C code to implement them. This will prepare you to pursue a career in software development or other computational fields. Successful completion of this Specialization will be considered by admissions as a demonstration of your skill and enhance your master’s application to Duke’s Pratt School of Engineering....
Introduction to Programming in C

Frequently Asked Questions

  • Once you enroll for a Certificate, you’ll have access to all videos, quizzes, and programming assignments (if applicable). Peer review assignments can only be submitted and reviewed once your session has begun. If you choose to explore the course without purchasing, you may not be able to access certain assignments.

  • When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile. If you only want to read and view the course content, you can audit the course for free.

  • No. Completion of a Coursera course does not earn you academic credit from Duke; therefore, Duke is not able to provide you with a university transcript. However, your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.

More questions? Visit the Learner Help Center.