Computer Science, asked by arunvarmaother9124, 1 year ago

How many main functions can be used in C program?
a) 2
b) 3
c) 1
d) any number

Answers

Answered by Monica695
3
HEY FRIEND

HERE IS YOUR ANSWER

We can have only 1 main function used in C program.

HOPE THIS HELPS YOU..
Answered by mindfulmaisel
0

Answer:

1 main function can be used in a c program.

Explanation:

Main () in a c program is also considered as the function. Each and every C program should possess at least one function (preferably one main () function). But there are no limits on number of functions. A C program can contain any ‘number of functions’.

A function in C, can has the ability to call itself which is known as Recursion. One can define 2 or more main () functions in the source code. But only one of them will be compiled at a time.  

Similar questions