what is the function of void main()?

Answer Posted / amit shrivastava

main is the special function,,,,,,,, wch contain the
defination of u r program or we can say it contain the main
body of u r program.It is called as special funtion becoz
it is invoked by the compiler itself,no any other function
call the main().
the void is a return type which is use when no meaning ful
value is to be return

Is This Answer Correct ?    18 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

number of times a digit is present in a number

1543


What is a const pointer in c?

670


What is the advantage of using #define to declare a constant?

623


Should I learn data structures in c or python?

583


What are conditional operators in C?

627






What is the easiest sorting method to use?

635


What is the purpose of 'register' keyword?

691


How can I change the size of the dynamically allocated array?

634


How does selection sort work in c?

624


Explain high-order bytes.

676


How would you rename a function in C?

623


Explain how do you determine the length of a string value that was stored in a variable?

670


Who is the main contributor in designing the c language after dennis ritchie?

554


Explain how do you generate random numbers in c?

626


What is a ternary operator in c?

654