C Programming

C Programming Tutorials

Binary Tree Height

Height of Binary Tree in C/C++

The height of a Binary Tree is defined as the maximum depth of any leaf node from the root node. That is, it is the length of the longest path from the root node to….

Sizeof Operator In C Programming

sizeof() Operator In C Programming

Like many other programming languages, C also comes with some pre-defined functions. sizeof() operator in C is also predefined. But, it is not a function even though it looks like, rather it is a unary….

Structures in C

Structures in C language are basically user-defined data types that enables the user to create a data type that can group elements of different data types into it. Thus, it contains different data types to….

memcpy() function

C/C++ memcpy() – Copy across memory locations

The memcpy() function in C/C++ is used to copy data from one memory location to another. This is a common way of copying data using pointers. Let’s understand how we can use this function in….

Volatile Qualifier in C

What is Qualifiers in C? Qualifiers in C are the keywords which are used to modify the properties of a variable.There are two types of qualifiers available in C language. They are const and volatile…..

Functions in C Programming

What is a Function? A Function is a block of statements that performs a specific task of some kind. Every C program can be thought of as the Collection of these Functions. The below Example….

Arrays in C

Why do we need Arrays? Consider the problem of storing 10 integers. The naive way to store these integers would be to create 10 different integers variables and store 1 integer in each of them…..

Pointers in C and C++

What is Pointer in C? A pointer is a variable that holds the address of another variable to which it points. We know that if a variable is defined, it allocates some memory location. To….

Linked List vs Array

Linked List and Array are probably the most basic data structures, but their use can often be confusing. The use of the appropriate data structure can often result in an easier and more efficient code…..

How to Find Length of a Linked List?

What is a Linked List? A linked list is a linear data structure used for storing collections of data Successive elements are connected by pointers The last element points to NULL Each element is a….

Generic selectors
Exact matches only
Search in title
Search in content