C Programming: The Bad Tutorials

Video Lectures

Displaying all 79 video lectures.
Lecture 1
Install Code::Blocks
Play Video
Install Code::Blocks
Hey guys, this is the first tutorial in this series of tutorials on C Programming Tutorials for Beginners. In this tutorial I have talked about Compilation and why we need a compiler to test C Code on our computers. I have discussed the instructions needed to install Code::Blocks, a very popular C/C++ IDE, on Windows 7 operating system.

I have also talked about my approach in the series and what I wish to achieve through the tutorials.

Please Subscribe to my channel in case you haven't already, I'll be looking forward to seeing you in the next tutorial.
Lecture 2
Hello Youtubers!
Play Video
Hello Youtubers!
In this tutorial we'll write a very simple program in C. The program will display a string of text on screen, you can display anything you want!

We'll discuss the basic elements that make a C program and we'll understand the significance of some of the most popular keywords in C.

Please subscribe to my channel, stay tuned for more updates.
Lecture 3
Variables & Arithmetic Operators
Play Video
Variables & Arithmetic Operators
In this tutorial we'll discuss how we can create and use variables in C. We'll also learn to add and subtract integers in C Programs.

Thank you so much for watching the tutorial, stay tuned for more updates AND please subscribe to may channel.
Lecture 4
Comments, Newline Escape Sequence & Arithmetic Operators (Contd.)
Play Video
Comments, Newline Escape Sequence & Arithmetic Operators (Contd.)
In this tutorial we'll learn to use comments in our C Programs. We'll also check out the remaining arithmetic operators and we'll see how to display output on different lines using the newline escape sequence.
Lecture 5
Program To Compute Simple Interest
Play Video
Program To Compute Simple Interest
In this tutorial we'll write a simple program that will compute for us the value of simple interest for a given set of Principal, Rate of Interest and Time Period. We'll also meet the "float" data type for the first time and we'll learn to display floats in the 'printf()' function using the '%f' format specifier.
Lecture 6
Receive Input from Users Using scanf()
Play Video
Receive Input from Users Using scanf()
In this tutorial we'll learn to accept input from users in C programs. Just as we use the printf() function to display content on the screen (the default output device), we use the scanf() function to receive input through the keyboard (the default input device).

Thank you for watching!
Lecture 7
Simple Interest Program (Enhanced)
Play Video
Simple Interest Program (Enhanced)
In this tutorial we'll check out a feature of the scanf() function. We'll learn to receive input for multiple variables in a single statement.

Thanks for watching!
Lecture 8
Modular Division
Play Video
Modular Division
In this tutorial we'll learn to perform modular division using the '%' operator. Modular division gets us the remainder when an integer is divided by another integer.
Lecture 9
Characters
Play Video
Characters
In this tutorials we'll see how character variables are created in C. We'll also see how integer arithmetic can be performed on characters.
Lecture 10
The pow() Function
Play Video
The pow() Function
In this tutorial we'll learn to use the pow() function to perform the exponentiation operation i.e to compute the result of a number raised to the power of another number.

Thanks for watching!
Lecture 11
Type Conversion in C
Play Video
Type Conversion in C
In this tutorial we'll learn how C perform implicit type conversion on values. The floating point values get demoted to integer values and the integer values get promoted to floating point values.
Lecture 12
Operator Precedence
Play Video
Operator Precedence
In this tutorial we'll discuss the order of precedence of arithmetic operators. We'll also see how we can pass over it by using parentheses.
Lecture 13
Associativity of Operators
Play Video
Associativity of Operators
In this tutorial we'll see how C resolves conflicts between operators that enjoy the same priority.
Lecture 14
Distance Conversion Program
Play Video
Distance Conversion Program
In this tutorial we'll write a program that asks the user to input distance in miles and would convert the distance in kilometers, feet and inches.

Thanks for watching!
Lecture 15
Temperature Conversion Program
Play Video
Temperature Conversion Program
In this tutorial we'll write a very simple program that asks the user to input temperature in degree centigrade and converts it into degree fahrenheit.

Thanks for watching!
Lecture 16
The if Statement
Play Video
The if Statement
In this tutorials we'll see the if-statement in action. The if-statement enables us to make decisions in our C Programs.
Lecture 17
The if-else Statement
Play Video
The if-else Statement
In this tutorials we'll learn to use the if-else construct provided by C. The if-else statement allows us to do one thing if a condition evaluates to true and another thing if it evaluates to false.
Lecture 18
Relational Operators
Play Video
Relational Operators
In this tutorial we'll check out the relational operators available to us. There are six of them and we'll all in action in this tutorial.

It does get long sometimes because I love to talk but then, I'll try to make shorter and more entertaining tutorials in future. Just bear with me this one last time!

Thanks for watching!
Lecture 19
Testing Without Relational Operators
Play Video
Testing Without Relational Operators
In this tutorial we'll see how we can omit relational operators from our test conditions for 'if' statement.

In C, all non-zero values are considered as true and zero is considered to be false.
Lecture 20
Nested if-else Statement
Play Video
Nested if-else Statement
In this tutorial we'll see the nested if-else construct. There is no restriction on the level at which nesting can be performed in programs.
Lecture 21
The Logical AND Operator
Play Video
The Logical AND Operator
In this tutorial we'll check out the Logical AND Operator. There are three logical operators available to us. Logical AND operator must be used whenever two mutually independent conditions need to be satisfied simultaneously.

Thanks for watching!
Lecture 22
Logical OR Operator
Play Video
Logical OR Operator
In this tutorial we'll check out the logical OR operator.
Lecture 23
Logical NOT Operator
Play Video
Logical NOT Operator
In this tutorial we'll see what the Logical NOT Operator does. You won't be needing it too much as there will always be a better way of doing something you might want to use the NOT Operator for. But you can't ignore it, you'll see it in most programming languages and it's crisp so it won't take any effort at all in understanding how it works.

So, enjoy the lesson and shoot all doubts in the comments section below.

Thanks for watching!
Lecture 24
Storage Classes Part One
Play Video
Storage Classes Part One
In this tutorial we'll talk about storage classes; what they are and why we have to know what they are. C provides us four storage classes viz. Auto, Register, Static and Extern.

We'll check out two of them now, and the remaining later. Watch the video in HD, it will load just as fast, trust me!

Thanks for watching!
Lecture 25
Escape Sequences
Play Video
Escape Sequences
In this tutorial we'll check out almost all escape sequences C provides us. We have seen the newline escape sequence before but we'll see it in action again here and we'll see other sequences too.

Thanks for watching!
Lecture 26
Constants (Part-1)
Play Video
Constants (Part-1)
In this tutorial we'll learn to define constants using the #define pre-processor directive method. We'll also try to understand the importance of using constants in our programs.

Thanks for watching!
Lecture 27
Constants (Part-2)
Play Video
Constants (Part-2)
In this tutorial we would continue our discussion on constants, will see some of the basic differences between between constants and variables and will also check out another method of defining constants in our programs.

Thanks for watching!
Lecture 28
Bitwise Operators (Part-1)
Play Video
Bitwise Operators (Part-1)
In this tutorial we'll discuss three bitwise operators. The remaining three would be taken up in the next tutorial. Bitwise operations are performed at the bit level and although the bitwise operators are rarely used, an understanding of them is required to be a well aware C Programmer.
Lecture 29
Bitwise Operators (Part-2)
Play Video
Bitwise Operators (Part-2)
In this tutorial we'll discuss the remaining three bitwise operators viz Left Shift Operator, Right Shift Operator and The Unary Operator.
Lecture 30
Assignment Operators
Play Video
Assignment Operators
In this tutorial we'll see some enhancements of the assignment operator. These enhancements allow us to perform basic arithmetic operations in a relatively efficient manner.

Thanks for watching!
Lecture 31
Sizeof Operator
Play Video
Sizeof Operator
In this tutorial we'll take a look at the sizeof operator. The sizeof() operator allows us to determine the size of variables (and data types). It has a very simple syntax and is fairly simple to understand.

Thanks for watching!
Lecture 32
Address of Operator
Play Video
Address of Operator
The address of operator let's us know the address of a variable in the memory. It's got a great deal of applications and we will touch upon it again when we discuss pointers.

Thanks for watching.
Lecture 33
Ternary Operator
Play Video
Ternary Operator
In this tutorial we'll take a look at the ternary operator. We'll see how it can be a cool alternative to the if-else statement. In the next tutorial we'll check out another application of the ternary operator.

Thanks for watching!
Lecture 34
Ternary Operator (Part-2)
Play Video
Ternary Operator (Part-2)
In this tutorial we'll check out an application of the ternary operator. We'll see how we can use the ternary operator to obtain the largest of a set of three numbers.

Thanks for watching!
Lecture 35
The Switch Statement
Play Video
The Switch Statement
Switch offers a pretty cool way of making decisions in your programs, it is an alternative to if-else statement and is the final decision making construct we are going to check out in this course.
Lecture 36
While Loop
Play Video
While Loop
In this tutorial we'll check out the while loop. While Loop allows you to execute code repeatedly till a condition is met. It's very simple to understand and it may be used to do some really cool things!
Lecture 37
For Loop
Play Video
For Loop
In this tutorial we'll learn to use the for loop. For is an amazing looping construct and we would be experimenting with it a lot in this course.

Thanks for watching!
Lecture 38
Do-While Loop
Play Video
Do-While Loop
In this tutorial we'll check out the do-while loop. The do-while loop is an exit control loop and in situations where you would want to execute the loop's body at least once, you would definitely want to use the do-while loop.

Thanks for watching!
Lecture 39
Nested Loops
Play Video
Nested Loops
In this tutorial we'll learn to use nested loops. Nested loops are loops within loops. We'll learn to use to loops to print the following pattern-:
*
**
***
****
*****

Thanks for watching!
Lecture 40
The Break Statement
Play Video
The Break Statement
In this tutorial we'll see the break statement in action. Break allows you to get out of loops when you want to and that lets you do some cool things. We are going to check out lot of applications of break in this course.

Thanks for watching!
Lecture 41
The Continue Statement
Play Video
The Continue Statement
In this tutorial we are going to have a look at the continue statement and see how it's different from break.
Lecture 42
Finding Prime Numbers
Play Video
Finding Prime Numbers
In this tutorial we are going to use nested loops to find prime numbers between 2 and 100.
Lecture 43
Functions (Part-1) Declaration, Definition & Invocation
Play Video
Functions (Part-1) Declaration, Definition & Invocation
In this tutorial we'll take a look at functions. We'll see how we can declare, define and call functions.

Thanks for watching!
Lecture 44
Functions (Part-2) Parameter Lists, Actual & Formal Parameters
Play Video
Functions (Part-2) Parameter Lists, Actual & Formal Parameters
In this tutorial we'll continue our discussion on functions and try to understand the difference between actual and formal parameters.
Lecture 45
Functions (Part-3) Return Statement
Play Video
Functions (Part-3) Return Statement
In this tutorial we'll see how we can pass values from the called function to the calling function using the return statement.
Lecture 46
The GOTO Statement
Play Video
The GOTO Statement
In this tutorial we'll see how we can use the goto statement to jump around in our C Programs.
Lecture 47
Infinite Loop
Play Video
Infinite Loop
In this tutorial we'll check out a loop that would run infinitely. A for loop that doesn't test anything or a loop for which the test condition never fails would run infinitely; we'll check out one such loop in this tutorial.
Lecture 48
Functions (Part-4) Call By Value Method
Play Video
Functions (Part-4) Call By Value Method
In this tutorial we'll check out the call by value method of passing arguments to functions. When call by value method is used, copies of actual parameters are stored in the formal parameters and any changes made to the values of the formal parameters are not reflected back to the actual parameters.
Lecture 49
Functions (Part-4) Call By Reference Method
Play Video
Functions (Part-4) Call By Reference Method
In this tutorial we'll check out the "call by reference" method of passing arguments to functions. We'll see how we can swap values of two numbers by passing their references to a function.
Lecture 50
Scope in C (Local & Global Variables)
Play Video
Scope in C (Local & Global Variables)
In this tutorial we'll check out the differences between local and global variables and we'll also try to understand what scope really is in C Programming Language.
Lecture 51
Introduction to Arrays
Play Video
Introduction to Arrays
In this tutorial we will meet arrays for the first time and learn to declare and initialize single dimensional arrays and also to print values of elements stored in a single dimensional array.
Lecture 52
Arrays (Part-2) Adding Array Elements
Play Video
Arrays (Part-2) Adding Array Elements
In this tutorial we'll learn to use loops to access array elements, add them and also compute the average of the elements.
Lecture 53
Arrays (Part-3) Miscellaneous Information
Play Video
Arrays (Part-3) Miscellaneous Information
In this tutorial we'll check out some handy tips to make efficient C programs that utilize arrays.
Lecture 54
Two Dimensional Arrays
Play Video
Two Dimensional Arrays
In this tutorial we'll learn to declare, initialize and use two dimensional arrays. Two dimensional arrays help us store information that needs to be organized in a tabular fashion.
Lecture 55
Passing Arrays To Functions
Play Video
Passing Arrays To Functions
In this tutorial we will see how we can pass an array as an argument to a function. Pretty simple it is!

I hope you guys enjoy watching the video.
Lecture 56
Introduction to Pointers
Play Video
Introduction to Pointers
In this tutorial we'll check out pointers for the first time in the course! Hope you have fun watching the video.
Lecture 57
Null Pointer
Play Video
Null Pointer
In this tutorial we'll understand what null pointer is in C Programming and why we should use it.
Lecture 58
Pointer to an Array
Play Video
Pointer to an Array
In this tutorial we'll see how we can make a pointer point to an array and traverse through the array using the pointer variable.
Lecture 59
Pointer to a Pointer
Play Video
Pointer to a Pointer
In this tutorial we will learn to have a pointer variable point to another pointer variable. Pretty interesting it is! Hope you guys enjoy watching the video.
Lecture 60
Array of Pointers
Play Video
Array of Pointers
In this tutorial we'll check out how we can use an array of pointers to store a list of string values.
Lecture 61
Introduction to Strings
Play Video
Introduction to Strings
In this tutorial we'll see how we can declare strings and display them on screen. We will also see how we can use the sizeof() function to determine the size of strings.

Thanks for watching!
Lecture 62
Predefined String Functions (Part-1)
Play Video
Predefined String Functions (Part-1)
In this tutorial we'll check out three predefined string functions. The strlen() function allows us to determine the number of characters in our strings. The strcpy() function takes two arguments and copies one string to another. The strcat() function also takes two arguments and it appends contents of one string to another.

Thanks for watching!
Lecture 63
Predefined String Functions (Part-2)
Play Video
Predefined String Functions (Part-2)
In this function we'll wrap up our discussion on strings by discussing three more popular string functions.

Thanks for watching!
Lecture 64
Introduction to Structures
Play Video
Introduction to Structures
In this tutorial we will understand what a structure is and how we can declare one in C.
Lecture 65
Accessing Structure Members
Play Video
Accessing Structure Members
In this tutorial we'll see how we can access members of a structure through the member access operator. We'll also learn to declare structure variables.

Thanks for watching!
Lecture 66
The getchar() and putchar() Functions
Play Video
The getchar() and putchar() Functions
In this tutorial we'll see how we can use the getchar() function to receive single character input and how we can display characters using the putchar() function.
Lecture 67
The gets() and puts() Functions
Play Video
The gets() and puts() Functions
In this tutorial we will see how we can use the gets() function to receive strings as input and how we can use puts() to display strings on the screen.

Thanks for watching!
Lecture 68
Array of Structure Variables
Play Video
Array of Structure Variables
In this tutorial we'll learn to work with arrays of structures. Hope you guys have fun watching it!
Lecture 69
Passing Structures to Functions
Play Video
Passing Structures to Functions
In this tutorial we'll see how we can pass structure variables as arguments to functions.

Thanks for watching!
Lecture 70
Pointers to Structures
Play Video
Pointers to Structures
This is going to be the final tutorial on Structures in this course and in this one we'll see how we can store the address of a Structure variable in a pointer and then use the pointer to access the members of the structure owned by the structure variable.
Lecture 71
Unions
Play Video
Unions
In this tutorial we will understand how we can use the union data type in our C Programs, we'll also check out the major difference between structures and unions.
Lecture 72
Typedef
Play Video
Typedef
In this tutorial we'll see what the significance of the typedef keyword is in C Programming Language. We'll make a short and simple program illustrating the usage of typedef.
Lecture 73
Parameterized Macros
Play Video
Parameterized Macros
In this tutorial we'll learn to define parameterized macros using the #define preprocessor directive and we will learn to use it in a very basic C application.
Lecture 74
Predefined Macros
Play Video
Predefined Macros
In this tutorial we'll learn to fetch system date and time using predefined macros.
Lecture 75
Type Casting in C
Play Video
Type Casting in C
In this tutorial we'll learn to perform explicit type casting in C through a very simple program.
Lecture 76
Implicit Type Conversion
Play Video
Implicit Type Conversion
In this tutorial we'll tale about integer promotion or implicit type conversion and see the concept in application in a very simple C program.
Lecture 77
Recursion in C
Play Video
Recursion in C
In this tutorial we'll understand the concept of recursion in C through a very simple program. We'll generate a program to compute the factorial of a number through recursion.
Lecture 78
Generating Fibonacci Series Through Recursion
Play Video
Generating Fibonacci Series Through Recursion
In this tutorial we'll use the concept of recursion to generate Fibonacci Series.
Lecture 79
Running C Programs in Linux Environment
Play Video
Running C Programs in Linux Environment
In this tutorial we'll learn to execute a very simple C Program on Ubuntu.