Merge Sort Program in C

By: Editorial Staff | Last Updated: | In: C Programming Tutorial


In this program, we are going to share Merge Sort program in c programming language. If you are a c beginner and want to start learning the Data Structure, then keep your close attention in this tutorial as I am going to share how to write a c program to sort the list using Merge …

Linked List Program in C

By: Editorial Staff | Last Updated: | In: C Programming Tutorial


In this tutorial, We will explain how to write linked list program in c programming language with example. Linked lists are the best and simplest solution of a dynamic data structure which uses pointers for its implementation to arrange the dynamically allocated nodes. At the end of this program, we have shared the real-time output …

Execute C Program Without main() Function

By: Editorial Staff | Last Updated: | In: C Programming Tutorial


This is very a simple & easy program, in which I am going to share how to execute C program without main() function. If you want to execute any c program without using the Main() function, then you can use the #define start main. Execute C Program Without main() Function Copy the below C program …

C Program to Convert Decimal to Octal Number

By: Prem Tiwari | Last Updated: | In: C Programming Tutorial


In the series of Number System Conversion, today I am going to share another c program which will convert the decimal number to octal number using c programming language with an example with the output. C Program to convert decimal to octal number Copy the below c program and execute it with the help c …

C Program to Convert a Number to a String

By: Prem Tiwari | Last Updated: | In: C Programming Tutorial


If you want to convert a number into a string, then you can use the sprintf() function in c programming language. We assume you have a basic knowledge of c programming language. C program to convert a number to a string Copy the below c program and execute with the help of c compiler.

Sizeof Operator in C Programming Language

By: Prem Tiwari | Last Updated: | In: C Programming Tutorial


sizeof() function is used to get the memory allocated size in C programming language. See the below example with the output. Sizeof Operator in C Below example will explain the data types such as int, float, char… etc and it will return the memory allocated size of the data types. Copy the below code and …

C Program to Display Hostname And IP Address

By: Prem Tiwari | Last Updated: | In: C Programming Tutorial


In this program, we will share how to get the Hostname and IP address of a local machine. In this program, I am using these predefined functions: 1) gethostname(): Get the hostname of a local machine. 2) gethostbyname(): Get the host information corresponding to the hostname. 3) inet_ntoa(): This function will convert an (Ipv4) Internet …

C Program to Find Sum of N Numbers

By: Prem Tiwari | Last Updated: | In: C Programming Tutorial


Previously I have shared a program to calculate the two number using c programming language. In this program, for loop to calculate the sum number of N numbers. When you execute this program, first time you have to enter the count of number to calculate the some, and then have to enter the numbers as …

C Program to Accept Paragraph as Input and Display Output

By: Prem Tiwari | Last Updated: | In: C Programming Tutorial


This c program will accept a paragraph of sentences as input on the execution time and print the output by using the scanf() function in C.. You can only enter the 150 characters of a paragraph while executing the program because I have set the limit of 150 characters only. If you want to change …

C Program to Copy an Array to Another Array

By: Prem Tiwari | Last Updated: | In: C Programming Tutorial


This c program will copy all the elements from an array to Another array with the help of for loop. Copy the below program and execute it with help of the c compiler. We assume you have basic knowledge of c programming language, Array in c programming, For loop in c.

Enter the number …