
Install a GCC or goodnews C compiler on your system, choosing MinGW for Windows. On Mac, download and install the free access code suite of tools that provides C compilers.
Discover decision making in C with the ternary operator, if-else, and switch. Learn how true and false are represented, relational and logical operators, and assignment versus comparison.
Learn how to define and call functions in C, including void functions, value-returning functions, and parameter handling, with examples like a wedge printer and simple type casting.
Understand that parameters are passed by value by default, so changes inside a function don’t affect outside variables; use pointers for pass by reference, and arrays pass as pointers.
Learn how to read two integers using scanf with prompts, then compute and print their sum, product, and maximum using simple functions and prototypes.
Explore linked lists, including singly and doubly linked lists, using pointers to manage head and tail, add and delete nodes with malloc, and prevent memory leaks in stacks and queues.
Discover how string streams let you treat strings as streams with stringstream, enabling safer input with type checking and easier formatted output through stream operations.
Explore how, in a lesson on without templates, C++ replaces multiple type-specific add functions with a single mechanism that handles integers, floats, and strings across different parameter and return types.
This course is an introduction to the C and C++ programming language. The C programming language has spurred many language developments since its invention by Dennis Ritchie in the early 1970s. Many modern programming languages owe their syntax to C. C is still a very popular programming language after over 40 years. C++ is based on C, but extends the language with features such as function templates, namespaces, and (of course) classes.
In this course, we'll explore the C and C++ programming language. We'll start with data types of C, then quickly dispel the mystery (and fright) that surrounds C's most powerful element, the pointer. Understanding pointers first allows us to grasp the underlying nature of arrays and structs, parameters passed by reference, and many other things hidden by other languages but exposed in C.
Then we will move to streams in C++ , which simplify input and output a great deal.
Here's a brief list of what you'll learn:
C Topics :
C++ Topics :
If you've been thinking about learning C and C++, then this course is a good first step.