Hi,
main()
{
}
Is a user defined function or Built in Functionn
Answer Posted / amit jha
1. main() itself is a predefined function.
where as main() is a userdefined function because there we
are writing the internal part.
2. it is an inbuilt function i.e, main() it indicates the
starting of the program and it is a user defined function
when the user defines it as void main() or int main(void).
3. A program usually stops executing at the end of main,
although it can terminate at other points in the program
At times, perhaps when a certain error is detected, you
may want to force the termination of a program. To do so,
use the exit function. so that main() is a user defined
function.
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
What language is lisp written in?
What is restrict keyword in c?
Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.
Is c is a procedural language?
What are pointers? What are different types of pointers?
What are the benefits of c language?
Do character constants represent numerical values?
What is the use of putchar function?
Why main is not a keyword in c?
How arrays can be passed to a user defined function
What is the process of writing the null pointer?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
Is fortran faster than c?
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Write a program with dynamically allocation of variable.