why does the execution of a c++ program start with main()???
Answer Posted / ajaykumar(me-tu)
I agree with above answer(given by Sujith). It is not
necessary the execution of program always start with main
function. Using pragma startup directive we execute any
function before executing main function. Here we give one
example in c language.
#include<stdio.h>
void print()
{
printf("\nThis is print function");
}
#pragma startup print
void main()
{
printf("\nThis is main function");
}
Output:
This is print function
This is main function
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
In what scenario does the Logical file and Physical file being used?
What two types of containers does the stl provide?
how to use C++?
What are the components of stl?
how to making game in c++ ?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
what is template and type convertion
totoo po ba ang manga aliens!
What do stl stand for?
How do I convert a stl file?
How does an stl file work?
What is stl stack?
Define stl.
What is the use of stl?