Execute C Program Without main() Function

Posted by Editorial Staff | Updated on | 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() …

C Program to Convert a Number to a String

Posted by Prem Tiwari | Updated on | 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 …

Sizeof Operator in C Programming Language

Posted by Prem Tiwari | Updated on | 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, …

C Program to Display Hostname And IP Address

Posted by Prem Tiwari | Updated on | 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 …

C Program to Accept Paragraph as Input and Display Output

Posted by Prem Tiwari | Updated on | 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 …

C Program to Copy an Array to Another Array

Posted by Prem Tiwari | Updated on | 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 …

How to Create a New Directory in C Programming Language

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


In this tutorial, I am going to share a c program to create a new directory with the help of Linux command. You will also learn, how to use Linux command in c programming language. …

How to Print an Array in C Programming Language

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


This program will read an array and print that array as output. In this program, we have used the for loop to print all elements of an array. When you execute this program, It will …

C Program to Generate Random Number

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


This c program will generate the random numbers using rand() function. This is a very simple program. In this program, we have used for loop to generate multiple random numbers. As an example we print …

C Program to Find the Largest Element From an Array

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


This is a c program to find the largest element from an array. We have used the for loop and if… statement to achieve the program goal. In this program, firstly the user will enter …

C Program to Delete an Element From an Array

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


Below program will delete an element from an array using c programming language. Copy the below code and execute it with the help of turbo C. I have compiled & executed the below program. Please …

C Program to Find the Array Size

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


One c language student requested to write a program to find the size of an array so that I am writing this tutorial. In this program, we will share a c program which will calculate …

C Programming Interview Questions and Answers

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


Are you a C programming beginners, or just finished the learning of c programming language and looking for the job in c programming, then this tutorial will help you lot. Please keep your close attention …

Selection Sort Program in C Programming Language

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


In this program, we will share the selection sort program in c programming language. Selection sort is a sorting algorithm, which is specifically known for its simplicity, and it has performance advantages. In this tutorial, …

Write a C Program to Calculate Average Using Arrays

Posted by Prem Tiwari | Updated on | in C Programming Tutorial.


In this program, I will explain how to calculate the average of entered numbers using an array in c programming language. This program will takes n numbers as input and store it in an array …