
Install the C++ compiler, create a console project, configure basic settings, save the project, and run the template application to test the setup.
Write a hello world program in C by placing hello between double quotes, ending the line with a semicolon, and returning zero to illustrate the structure of a C statement.
The structure of a program comprises data and operations that act on that data, using integer data types and semicolons to define and manipulate values.
Assign a value to a variable using the assignment operator and print it with a format specifier to display the current value, such as 5, in the C programming language.
Assign 1 to A, then overwrite it with 5; print the value to the console. See that code executes line by line, so later assignments overwrite earlier ones.
Practice basic operations in C by adding, subtracting, multiplying with the asterisk, and dividing with the slash, then print the results to verify calculations.
discover how to work with multiple variables in C by setting b = a + 5, so b becomes 6 while a remains 1, and print both.
Learn to read numbers from the keyboard in C using scanf and a variable a, store input with &a, and print it back.
Learn to prettify console output in C by formatting text, reading a number from the keyboard, computing double of a, and printing results on separate lines using newline escape sequences.
Learn to print multiple variables in a single printf statement by matching each %d placeholder with its corresponding argument, and see how typed values and results appear in the console.
write a simple c program that uses scanf to read two numbers into variables a and b, computes their sum and product, and prints the results with printf.
Move declarations to the top to separate data from operations, and inline simple calculations like a plus b instead of creating a separate variable, improving readability and eliminating undeclared usage.
Learn how and why to use comments in C programming, including single-line // and multi-line /* */ comments, to clarify code and improve readability in large projects.
Discover shorthand operators in C. Update a with a = a - 1, then use a -= 1, a--, and a++, and apply a *= and a /=.
Use the if statement in C to test conditions such as a negative number and print results. Employ else to handle nonnegative cases and control program flow.
Explore C's comparison operators, including less than, greater than, equal and not equal, and how they drive if statements, plus the distinction between = and == for testing against zero.
Discover the modulo operator in C, learn how it yields the remainder of division, and use it to check if numbers are odd or even with practical examples.
Master nested if statements in C programming to check whether a typed number lies between zero and four, using inclusive bounds and else branches to handle outside values.
Discover how the while loop in C uses a condition to control repetition, print a line, then recheck and decrement the counter until the condition becomes false.
Learn how to control repetition in C using a while loop and keyboard input with a scanner to print a line an arbitrary number of times on the console.
Learn how the for loop in C compares to while loops, including initialization, condition, and increment, with a hands-on example that prints a line four times.
Learn to compute the sum 1 through n using a for loop in C, reading the input number and printing the resulting total.
Learn how to convert a for loop to a while loop and vice versa by moving the assignment, rearranging the increments, removing the semicolon, and swapping for with while.
Show how integer division truncates decimals and fix it by using the float data type for A, B, and the result, then print with %f to reveal decimals.
Learn how to declare and use an array in C, assign values with a[i], and sum elements with a for loop, using zero-based indexing.
Explore how arrays handle integers and floats in C programming, convert arrays to float types, print floats, and sum elements while maintaining a single data type per array.
Declare a size-5 array, initialize it with values, and print elements 0–4 with a for loop. Use shorthand initialization and omit size to infer length; initializers must appear at declaration.
Explore how to find and print odd numbers in an integer array by iterating with a while loop, using modulo 2 to test oddness, and printing only the odd elements.
Explore the char data type, storing a single character, and initialize it with single quotes. Use printf with %c to print, and learn about ampersand input in C.
Explain that computers store characters as numeric ASCII codes rather than characters themselves, mapping numbers to characters with the ASCII table, such as 115 printing 's' and 48 printing '0'.
Explore how the char data type stores characters as ASCII codes, print them with printf, and perform arithmetic on char values to see how adding one changes the character.
Learn how to check character properties in C using if statements and ASCII ranges to distinguish uppercase and lowercase letters, then print the results.
Explore how to check character properties in C using ASCII values and the ASCII table, identifying uppercase and lowercase letters like A and Z and a and b.
Learn to initialize a char array as a string of text and print it dynamically, using ASCII codes or characters, then extend to printing longer text with a for loop.
Learn to print a character array in C by adding the null character, the string terminator, so printf knows where the text ends.
Discover how to initialize a text variable with double quotes, print it, and manipulate the text in C, noting the backslash 0 at the end and the upcoming lesson.
Explore manipulating text in C by treating strings as character arrays, initializing and iterating over the array to replace exclamation marks with question marks using character comparisons.
Discover how to dynamically determine a string's length in C with a library function, then iterate over text of any length to replace characters, such as exclamations with question marks.
Read a line with fgets up to 100 characters, instead of scanner, then replace exclamation marks with question marks, trim the trailing newline, and print the processed text.
Declare a 100-character destination array, copy the input text with strcpy from the source, and print the copied text later alongside the original, including exclamation and question marks, using string.h.
Learn to concatenate text in C using strcat, reading a name input, and building a greeting like Hello Alice by handling spaces and strings as arrays of characters.
Explain a C algorithm to convert text to upper-case by iterating a string with a while loop, converting lowercase letters (a–z) to uppercase via ascii minus 32, and noting alternatives.
Learn how functions condense repetitive input code in C, define a read_number function with a return value, and call it to obtain and reuse numbers in main.
Define a function with parameters in C to compute a sum up to a given number. Change the call argument to vary the return value without modifying the function itself.
Learn to write a void function in C that prints a message and reports simple statistics, such as message length and letter count, by iterating over a char array.
Learn the basics of programming using C, one of the most widely used programming language. We will start from the simple concepts of variables, input and output to the more complex ones such as loops, low-level text manipulation and functions.
Start programming with this simple and straightforward guide through the most basic programming language.
Understand quickly one of the most important skills in programming
In the programming industry you might come across the idea that you have to learn the most advanced, cutting-edge and fully featured language right off the bat. This might be a good idea for some people, but, for most, it's a wise choice to start from the beginning, the root of all programming language, the C language.
Who uses this language? Essentialy, everybody, whether they know it or not. It's used in your operating system (mobile and desktop), for most embedded systems and even in building other programming languages (like Java, Python and C#)
Content of this course
This course has been created with you, the beginner, in mind. We start from the basics of the basics, how to create the code in the C programming language and run it. We will be using Dev-C++ as our IDE but this is just a recommendation, if you have already other IDE installed you can certainly use that.
We will continue with creating an overview of what a program actually is and how we can interact with this program using user input (from the keyboard) and program output (using the command prompt's console). We will also learn ways to format our output however we want.
Interacting with the program is all nice and good, but what if we want it to do something else based on a certain condition. This is what will learn next, and we won't stop there. We will also go through ways in which we can do something (inside our code) however many times we want.
Next up we'll cover ways to manipulate text in a low-level manner. This is very interesting and much more in-depth than in some other languages. This is something that is hidden from you when using other languages (such as Java) for text manipulation and will be great food for thought for the curious.
And lastly, we will shortly cover how to create code that can be used later on using functions.
After this course you will be on your way to becoming a programmer. You will know the basics which can be applied in any programming language and much more.