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 would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers
Where does the name "C" come from, anyway?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
How can a number be converted to a string?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What are static variables in c?
What is wild pointer in c with example?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How many bytes are occupied by near, far and huge pointers (dos)?
What is the use of sizeof () in c?
Tell me what is null pointer in c?
Can we change the value of static variable in c?
Why does not c have an exponentiation operator?
How many types of sorting are there in c?
Explain is it better to bitshift a value than to multiply by 2?