# Category Archives: C Language

Here we will build a C Program For Decimal to Hexadecimal Conversion using 4 different approaches i.e. Using format specifier Using modulus division operator Without… Read More
Here, we can use the 2 different approaches to print the name: Using printf() Using scanf() Input:  Enter Name = Mukul Output:  Name = Mukul… Read More
Here, we will see a C program to print the 3 different number patterns. There are 3 number patterns covered using for loop and while… Read More
Here, we will compute the sum of diagonals of a Matrix using the following 3 methods: Using Conditional statements Taking Custom Input from the user… Read More
Here we will build a program to showcase an efficient way to convert a char from upper to lower and vice versa in C in… Read More
Here, we will see how to print a triangle using the C program Input:  5 Output: *  * *  * * *  * * *… Read More
Here we will build a C program to check prime numbers by creating a function using 3 different approaches: Using for loop for prime number… Read More
To convert the long to string in C language we will use the following 2 approaches: Using Macros with sprintf Using sprintf Input:  long =… Read More
Here, we will print the boundary elements of a matrix using a C program: Input : 1 2 3 4 1 2 3 4 1… Read More
Here, we will convert the octal to a decimal using 4 different approaches in C Language: Using Format Specifier Without using pow() Using pow() Using… Read More
Here, we will see how to find the common array elements using a C program. Input:   a[6] = {1,2,3,4,5,6} b[6] = {5,6,7,8,9,10} Output:  common… Read More
To merge 2 arrays in C language we will use the following approaches: Using Quaint Methodology  Using Functions Input: arr1 = [1, 2, 3, 4,… Read More
Here, we will build a C++ program to print the hollow star pyramid diamond shape pattern that can be achieved with two approaches i.e. Using… Read More
Here, we will see how to build a C program to print prime numbers from 1 to N using 2 approaches: To check whether every… Read More
To copy all the elements of one array to another in C language using three approaches.  Example:  Input:  First Array: a[5] = {3, 6, 9,… Read More