Course
C
52 lessons64 min total
-
C Programming Language
C is a general-purpose, procedural, imperative computer programming language developed at AT & T’s Bell Laboratories of USA…
-
C Program – Structure
Before we begin with our basic concepts of the C programming language let's take a look at the…
-
Keywords in C
There is a close analogy between learning the English language and learning the C language. We start learning…
-
Identifiers in C
Identifiers in C are the basic building block of a program. As the name suggests, they are used…
-
Variables & Constants in C
Variables & Constants in C are formed by combining alphabets, numbers, and special symbols. Let us see what…
-
Data Types in C
Data types in C refer to how much memory it occupies in storage and how the bit pattern…
-
Operators in C
Operators in C are symbols that are used to perform operations on operands(operands can be a constant, a…
-
Precedence of Operators in C
While executing an arithmetic operation the precedence of the operators in C as well as other programming language…
-
Comments in C
Comments in C are an explanation or description of the source code of the program. It helps a developer…
-
Format specifiers in C
Format Specifiers in C are used during input and output operations. They specify what kind of data is…
-
Escape Sequence in C
The escape sequence in C represents nongraphic characters (nongraphic characters are those characters that cannot be typed directly…
-
Decision-Making in C
Decision-making in C, as the name suggests, is a way of performing different sets of actions depending on…
-
if-else Statement
As we have already seen that the if statement by itself will execute a single statement, or a…
-
switch Statement in C
The switch statement in C provide us with an alternate way to implement the if-else if ladder in…
-
switch and if-else in C
We had already seen that both if-else and switch in C can be used for decision-making in a…
-
Loops in C
The programs that we have created so far were of limited nature, because on execution, they always perform…
-
Loops and its examples
Let us take a look at the various ways to use loops in c. Infinite loop An infinite…
-
while loop in c
The while loop in c is an entry controlled loop (Entry Controlled Loops are used when checking of…
-
while loop examples in c
Let us look at various examples of the while loop in c. Printing n numbers: output: Here, we…
-
do-while loop in c
The do-while loop in c in an exit controlled loop unlike the for and the while loop the…
-
do-while loop examples
Here are a few examples of the do-while loop. Printing table of a number using do-while: output: using…
-
Jump statements in C
In some programming cases, we want to take control to the start of the loop, skipping the statements…
-
Functions in C
A computer program cannot handle all the tasks by itself, instead, it requests other programs like entities called,…
-
Passing arguments between functions in C
The functions that we use need to be flexible, i.e, they should be able to pass values among…
-
Call by Value & Call by Reference
There are two ways to pass the data into the function in C language: method :call by value …
-
Recursive function in C
In the C programming language, a function may call itself. A function is called recursive if a statement…
-
Program to check whether a number is even or odd
To determine whether an integer number is even or odd, utilize functions. We have created a function even_odd(int…
-
Arrays in C
Arrays in the C language are a set of homogenous data types stored at the contiguous memory location.…
-
One-dimensional Array
A one-dimensional array is one that only needs one subscript statement to show a single array element. A…
-
Two-dimensional array
The two-dimensional array can be defined as an array of arrays. The 2D array is organized as matrices,…
-
Structure in C
The structure is a user-defined data type in C that allows us to aggregate data of various types. Structure…
-
Array of Structure
Array of Structure: In C, an array of structures is a collection of many structure variables, each of…
-
Nested Structure in C
C allows us to nest one structure within another structure, which allows us to design complicated data types.…
-
Typedef in C
Typedef in C is used to redefine the name of the existing variable type. It generally increases the…
-
Unions in C
A union is a particular data type in C that allows several data types to be stored in…
-
Pointer in C
In C, a pointer is a variable that stores the address of another variable. This variable can be…
-
Pointer to array
An array name is a constant pointer to the array’s first element. As a result, in the declaration…
-
Pointer to structure
The structure pointer points to the memory block address where the Structure is stored. It’s used to make…
-
Pointer to Pointer in C
A pointer variable stores the address of another pointer variable; this is referred to as a pointer to…
-
Pointer operations
Just like any other data type, we can perform various arithmetic operations on pointers. All pointers int, float,…
-
Pointers with function in c
We can create a pointer pointing to a function in the same way that we can create a…
-
File handling in C
File handling in C allows us to use our C program to create, update, read, and delete files…
-
Error Handling in C
The response and recovery procedures from error conditions present in a software application are referred to as error…
-
Dynamic Memory Allocation
In the C programming language, the concept of dynamic memory allocation allows the programmer to allocate memory at…
-
Command Line Argument
When your C programs are run, you can pass some values from the command line to them. These…
-
Miscellaneous Program(Palindrome Number)
A palindrome is a sequence that, when reversed, looks exactly like the original. For example, abba, level, 232,…
-
Miscellaneous Program(reverse the case of input string)
A program to reverse the case of input characters is provided below. islower() is a system-defined function in…
-
Miscellaneous Program(Armstrong Number)
An Armstrong number is an n-digit number whose sum of digits raised to the nth power equals the number…
-
Miscellaneous Program(exponential without using pow() method)
Without using the pow() method, here is a program to find exponential. Long long int is twice as…
-
Miscellaneous Program(Reverse an array)
A simple program to reverse an array is provided below. Output: here, we have reversed the input array…
-
Miscellaneous Program(Remove Duplicate Elements)
When an array contains the same number of elements in both sorted and unsorted order, the elements of…
-
Miscellaneous Program(Matrix multiplication)
A Matrix Multiplication program is provided below. Only when the number of columns in the first matrix equals…