Computer Science, asked by nilakshi6695, 9 months ago

How many main functoin can be use in the C laguage program

Answers

Answered by suhanakv60
1

Types of function

There are two types of function in C programming:

#Standard library functions

#User-defined functions

*Standard library functions

The standard library functions are built-in functions in C programming.

These functions are defined in header files. For example,

The printf() is a standard library function to send formatted output to the screen (display output on the screen). This function is defined in the stdio.h header file.

Hence, to use the printf() function, we need to include the stdio.h header file using #include <stdio.h>.

The sqrt() function calculates the square root of a number. The function is defined in the math.h header file.

*User-defined function

You can also create functions as per your need. Such functions created by the user are known as user-defined functions.

Here's your answer

If helped pls mark as brainliest

Similar questions