Hi,
main()
{
}

Is a user defined function or Built in Functionn

Answer Posted / hemanth

main method is inbuilt function.Execution of the program starts with main().JVM should know where the execution of the program start.If it is user defined function,why cant we write
int instead of void before main(string args[]).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is new line escape sequence?

814


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5464


Does c have circular shift operators?

734


What is the full form of getch?

587


What is the use of a semicolon (;) at the end of every program statement?

780






Do string constants represent numerical values?

930


What does the && operator do in a program code?

700


How can I make it pause before closing the program output window?

585


Define Spanning-Tree Protocol (STP)

649


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

677


What is wild pointer in c with example?

581


write a program to display all prime numbers

1461


How many loops are there in c?

584


What is the size of enum in c?

625


Is it fine to write void main () or main () in c?

549