what is the function of void main()?

Answer Posted / chirag sathvara

void main() function,it will flow of the program
execution,what are the next step of line to execute.
for example,
void main()
{
int b=0
cout<<b;
int c=0;
cout<<c;
}
/*it will indicate first create object of int type,after it
will genereate next statement.*/

Is This Answer Correct ?    29 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is wrong with this declaration?

840


Why is c called c?

786


Can we change the value of #define in c?

778


What is merge sort in c?

838


Do pointers store the address of value or the actual value of a variable?

835


What are the ways to a null pointer can use in c programming language?

880


How will you delete a node in DLL?

946


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

1798


Explain Basic concepts of C language?

834


Why does everyone say not to use gets?

805


What are the similarities between c and c++?

809


Is c high or low level?

785


What is a floating point in c?

812


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1892


write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2114