Explain about the header files and what are the uses of header files in C program?

Posted by Jennifer | Updated on | C


Explain about the header files and what are the uses of header files in C program? Header files are also called as library files. They contain 2 essential things: the definitions and prototypes of functions …

Explain about spaghetti programming?

Posted by Jennifer | Updated on | C


Spaghetti programming refers to programs that tend to get tangled and overlapped throughout the codes. This unorganized approach to coding is usually attributed to lack of experience on the part of the programmer. Spaghetti coding …

How can we replace the following statement by using WHILE Loop?

Posted by Jennifer | Updated on | C


How can we replace the following statement by using WHILE Loop? Answer:

C Program for Sum the digits of a given number

Posted by Pinki | Updated on | C


In this example, I have shared a C program for Sum the digits of a given number.

Area of a leaf inside a square using c program

Posted by Editorial Staff | Updated on | C


Area of a leaf inside a square using c program. We need to split it into parts and find the area of parts and then add the areas to find the area of leaf. Example: …

How to check if a given Binary Tree is BST or not?

Posted by Editorial Staff | Updated on | C


If you want to check if a given Binary Tree is BST or not? If current key value is greater, then continue, else return false. See the below example to check if a given Binary …

C program to display factors of a number

Posted by Rohit Kumar | Updated on | C


In this example, I have share a c program to display factors of a number with the output. This program takes a positive integer from the user and displays all the positive factors of that …

Program to check prime number using c programming

Posted by Jessica Taylor | Updated on | C


In this program, I have shared how to check prime number using c programming? I assume you should have the knowledge of the following c programming topics like C if…else Statement, C for Loop, and …

C program to print all the prime numbers between given range

Posted by Editorial Staff | Updated on | C


Thos c program to print all the prime numbers between given range Below is the algorithm of this program: Algorithm to find prime numbers Take the range of numbers between which you have to find …

Average numbers in array in C Programming

Posted by Editorial Staff | Updated on | C


In this example, We have shared average numbers in array in C Programming. The idea is to pass index of element as an additional parameter and recursively compute sum. After computing sum, divide the sum …

Write a program to Delete a Tree in C programming

Posted by Editorial Staff | Updated on | C


In this example, We have shared how to write a program to Delete a Tree in C programming. Program Output

Superperfect Number in C programming

Posted by Editorial Staff | Updated on | C


In this example, We have shared superperfect Number in C programming Use the below c program example: Program output