How many main functions can be used in C program?
a) 2
b) 3
c) 1
d) any number
Answers
Answered by
3
HEY FRIEND
HERE IS YOUR ANSWER
We can have only 1 main function used in C program.
HOPE THIS HELPS YOU..
HERE IS YOUR ANSWER
We can have only 1 main function used in C program.
HOPE THIS HELPS YOU..
Answered by
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