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 are the different types of endless loops?
What is sorting in c plus plus?
What is difference between %d and %i in c?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
What Is The Difference Between Null And Void Pointer?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What functions are used for dynamic memory allocation in c language?
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Explain what is the benefit of using an enum rather than a #define constant?
What is strcpy() function?
Do string constants represent numerical values?
about c language
Write a program to check prime number in c programming?
How does sizeof know array size?