C

C Courses

The C programming language is one of the oldest surviving programming languages. During its run, the senior member of the programming fraternity has influenced a wide range of modern programming languages, such as Java, PHP, and Python, and is continuing to do so even today.

Although over 4-and-a-half decades old, the C programming language is an indispensable part of many fields, including gaming, robotics, and electronics. So, is it worth learning the C programming language? Of course, it is!

Read more

C Data Types

Applications require different types of data to store information. For example, the name is an array of characters, but age is better stored as an integer. We can perform many operations (sum, average, concatenation, matching, etc.). If the data is stored in the correct format and with correct types. That is why we have so many data types in C so that we can differentiate and segregate data in the best possible way.

Read more

Pass by Reference

There are three ways to pass variables to a function – pass by value, pass by pointer and pass by reference. The most common language that uses pass by reference in C++. To discuss pass by reference in detail, I would like to explain to you the other two ways as well, so that the concepts are planted in your mind forever. The examples I have written are in C++ because C++ uses all the three and it will be easier for us to compare and understand each of them. If you would like to learn more about C++, do it here.

Read more

Quick Sort in C

Similar to merge sort in C, quick sort in C follows the principle of decrease and conquer, or as it is often called, divide and conquer. The quicksort algorithm is a sorting algorithm that works by selecting a pivot point, and thereafter partitioning the number set, or array, around the pivot point.

Also known as partition-exchange sort, quicksort was developed by Tony Hoare, a British computer scientist, in 1959. Since its publishing in 1961, quicksort has become one of the top choices in sorting algorithms.

Read more